CN108829650A - A kind of generation method of card number, device, server and storage medium - Google Patents
A kind of generation method of card number, device, server and storage medium Download PDFInfo
- Publication number
- CN108829650A CN108829650A CN201810556904.0A CN201810556904A CN108829650A CN 108829650 A CN108829650 A CN 108829650A CN 201810556904 A CN201810556904 A CN 201810556904A CN 108829650 A CN108829650 A CN 108829650A
- Authority
- CN
- China
- Prior art keywords
- card number
- character
- target service
- sequence
- card
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/151—Transformation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Cash Registers Or Receiving Machines (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of generation method of card number, device, server and storage medium, the method includes:Sequentially generate first part's card number of target service in operation system;The sequence number of the target service is obtained, the sequence number includes sequence identifier information;The sequence identifier information is converted into second part card number based on the first transformation rule, the second part card number includes the character of the first quantity;Character in the second part card number is inserted into first part's card number by default insertion rule, obtains the first card number of the target service.Generation card number that can be simple and quick using technical solution provided by the invention.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of generation method of card number, device, server and storages
Medium.
Background technique
Current all kinds of entity cards or virtual card, such as member card, bank card, accumulating card, point of play certificate, rechargeable card of the cell phone
Deng being owned by a unique card number.If the card number duplicated, the management data of background system can be made to go wrong,
For example, the total mark of consumption information of two member cards is recorded in same data record.Therefore, it is making and is issuing each
Before card, require to pre-generate a card number for the unique identification entity card or virtual card.
In the prior art, in for operation system the service generation of a certain type accordingly a kind of entity card number when, usually
Random number is first generated based on preset function.After one random number of every generation, needing (should by inquiry card number record sheet
There is record in card number record sheet changes the card number that operation system has generated) come judge the random number whether be in operation system it is early
An already present card number.It, can should if the random number is not the entity card number probably already existed in operation system
The random number card number new as one, for making new an entity card or virtual card.In addition, the random number is updated
Into card number record sheet.However, being largely fabricated to the development of business, often having in the card number record sheet of operation system
The card number of entity card or virtual card, inquires heavy workload, and the formation efficiency for resulting in new card number is low.Accordingly, it is desirable to provide more
Efficient scheme, more rapidly to generate card number.
Summary of the invention
The present invention provides a kind of generation method of card number, device, server and storage medium, life that can be simple and quick
At card number.
In a first aspect, the present invention provides a kind of generation method of card number, the method includes:
Sequentially generate first part's card number of target service in operation system;
The sequence number of the target service is obtained, the sequence number includes sequence identifier information;
The sequence identifier information is converted into second part card number, the second part card number based on the first transformation rule
Character including the first quantity;
Character in the second part card number is inserted into first part's card number by default insertion rule, obtains institute
State the first card number of target service.
Second aspect provides a kind of generating means of card number, and described device includes:
First part's card number generation module, for sequentially generating first part's card number of target service in operation system;
Sequence identifier data obtaining module, for obtaining the sequence number of the target service, the sequence number includes sequence
Identification information;
Second part card number generation module, for the sequence identifier information to be converted into second based on the first transformation rule
Part card number, the second part card number include the character of the first quantity;
First card number generation module, described in being inserted into the character in the second part card number by default insertion is regular
In first part's card number, the first card number of the target service is obtained.
The third aspect provides a kind of generation server of card number, and the server includes processor and memory, described
At least one instruction, at least one section of program, code set or instruction set are stored in memory, described at least one instructs, is described
At least one section of program, the code set or instruction set is loaded by the processor and is executed to realize card as described in relation to the first aspect
Number generation method.
Fourth aspect provides a kind of computer readable storage medium, and at least one finger is stored in the storage medium
Enable, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or
Instruction set is loaded by processor and is executed the generation method to realize card number as described in relation to the first aspect.
Generation method, device, server and the storage medium of card number provided by the invention, have the following technical effect that:
The present invention realizes the generation of quick and easy uniqueness card number by sequentially generating first part's card number;In addition,
Sequence identifier information transcoding treated the second part card of create-rule will be found out in sequence number with uniqueness and being not easy
Number being inserted into first part's card number obtains the first card number, ensure that card number is not easy to be deduced create-rule, can greatly improve
The efficiency that card number generates, realizes simple and quick generation card number.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology and advantage, below will be to implementation
Example or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, the accompanying drawings in the following description is only
It is only some embodiments of the present invention, for those of ordinary skill in the art, without creative efforts,
It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is a kind of flow diagram of embodiment of the generation method of card number provided by the invention;
Fig. 2 is a kind of embodiment provided by the invention for sequentially generating first part's card number of target service in operation system
Flow diagram;
Fig. 3 is a kind of schematic diagram of embodiment of the composition of sequence number provided by the invention;
Fig. 4 be this specification provide the sequence identifier information is converted by second part card based on the first transformation rule
Number a kind of embodiment flow diagram;
Fig. 5 be this specification provide the sequence identifier information is converted by second part card based on the first transformation rule
Number another embodiment flow diagram;
Fig. 6 be this specification provide the character in the second part card number is inserted into described the by default insertion rule
In a part of card number, a kind of flow diagram of embodiment of the first card number of the target service is obtained;
Fig. 7 is provided by the invention the first number to be inserted into the second part card number in the 4th quantity character string
The character of amount obtains a kind of flow diagram of embodiment of the first card number of the target service;
Fig. 8 is the flow diagram of another embodiment of the generation method of card number provided by the invention;
Fig. 9 is the first card number of merging the Part III card number and the target service that this specification provides, is obtained
A kind of schematic diagram of embodiment of second card number of the target service;
Figure 10 is a kind of structural schematic diagram of embodiment of the generating means of card number provided by the invention;
Figure 11 is a kind of composition block diagram of embodiment of first part's card number generation module provided by the invention;
Figure 12 is a kind of composition block diagram of embodiment of second part card number generation module provided by the invention;
Figure 13 is the composition block diagram of another embodiment of second part card number generation module provided by the invention;
Figure 14 is a kind of composition block diagram of embodiment of the first card number generation module provided by the invention;
Figure 15 is the structural schematic diagram of another embodiment of the generating means of card number provided by the invention;
Figure 16 is a kind of structural schematic diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art without making creative work it is obtained it is all its
His embodiment, shall fall within the protection scope of the present invention.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, product or server need not limit
In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce
The other step or units of product or equipment inherently.
In practical applications, businessman provides a user the power that entity card or virtual card are often provided with corresponding operation system
The correlations such as beneficial function.Such as the member card that video website provides a user can be supplemented with money, to enjoy more member's videos, exempt from
The members such as advertisement equity or function.Meanwhile the function equity that operation system provides generally requires corresponding sequence number cdkey in industry
After business system carries out registration activation, the ability of user enjoys the equity that operation system provides using corresponding entity card or virtual card
Function, in general, a large amount of cdkey can be generated to meet and subsequent be when operation system develops a new business activity
User provides the demand of corresponding function equity.
A kind of embodiment of the generation method of card number of the present invention introduced below, Fig. 1 is the generation of card number provided by the invention
A kind of flow diagram of embodiment of method, present description provides the methods as described in embodiment or flow chart to operate step
It suddenly, but based on routine or may include more or less operating procedure without creative labor.It is enumerated in embodiment
Sequence of steps is only one of numerous step execution sequence mode, does not represent and unique executes sequence.In practice be
When system or server product execute, (example can be executed according to embodiment or the execution of method shown in the drawings sequence or parallel
Such as parallel processor or the environment of multiple threads).It is specific as shown in Figure 1, the method may include:
S101:Sequentially generate first part's card number of target service in operation system.
In this specification embodiment, the target service can be one or more business in operation system.Such as Fig. 2 institute
Show, Fig. 2 is the stream provided by the invention for sequentially generating a kind of embodiment of first part's card number of target service in operation system
Journey schematic diagram.Specifically, may include:
S201:The service identification number that the target service sequentially generates is obtained, the service identification number includes the second quantity
Character.
In practical applications, a large amount of different business are frequently included in operation system, in order to distinguish in same operation system
Different business the business mark that can be different from other business can be set in operation system for each business in operation system
Knowledge number.It, can be using sequentially generating in order to quickly generate the service identification number of a large number of services in addition, in this specification embodiment
Mode.
Specifically, the character quantity (the second quantity) that service identification number includes in this specification embodiment can be according to business
The business development needs and card number digit demand of system determine.In a specific embodiment, it is assumed that business in operation system
Service identification number in character quantity can be 4.Correspondingly, the business of business in operation system can be generated since 0001
Identification number, the service identification number of next business can be 0002.Correspondingly, can be selected from the service identification sequentially generated
The service identification number of the target service.
S203:The card number sequentially generated is obtained, the card number includes the character of third quantity.
In practical applications, each business has a large amount of user in operation system, in order to distinguish in same business not
It can be different from the card number of other users in the business for each user setting in business with user.In addition, this theory
It, can be by the way of sequentially generating in order to quickly generate a large amount of card numbers in bright book embodiment.
Specifically, the character quantity (third quantity) that the card number in this specification embodiment in each business includes can be with
It is determined according to the business development needs of business and card number digit demand.In a specific embodiment, it is assumed that in target service
Card number in character quantity can be 6.Correspondingly, can since 000001 in generation business card number, it is next
Card number can be 000002.
In addition, it is necessary to which explanation, is sequentially not limited in the increasing that above-mentioned 1 is step-length described in this specification embodiment
It is long, it can be combined with practical application, other growth step-length be set sequentially to generate service identification number or card number.
S205:The service identification number and card number for merging the target service, obtain the first of the target service
Part card number.
In this specification embodiment, in a new card number for needing to generate business, the business mark of business can be merged
Know number and one sequentially generate card number, obtain first part's card number.
First part's card number described in this specification embodiment includes the industry of the specific business unique identification in operation system
The card number for identification number and the unique identification having in business of being engaged in, ensure that first part's card number is unique in operation system
Property.In addition, card number and service identification number all sequentially directly generate, without carrying out the processing of duplicate checking, first part's card number
Formation efficiency is high.
S103:Obtain the sequence identifier information in the sequence number of the target service.
In this specification embodiment, the first part's card number sequentially generated has uniqueness in operation system, but considers
It is easy to be seen the create-rule of card number to the card number sequentially generated, is easy to appear and directly acquires a card number and can extrapolate
The case where other card numbers, brings difficulty for the maintenance of follow-up business system.Therefore, available in this specification embodiment to have
Uniqueness and it is not easy to find out the sequence identifier information in the sequence number of create-rule.
As shown in figure 3, Fig. 3 is a kind of schematic diagram of embodiment of the composition of sequence number provided by the invention.From cdkey
Batch information be cdkey in batch information be a certain business in operation system identifier number, can be used for distinguishing same
Different business in operation system.Sequence identifier information in cdkey can be the identifier number of accounts different in same business,
It can be used for distinguishing account different in same business.
In addition, it should be noted that, sequence number described in this specification embodiment is not with digit with the letter in Fig. 3
Limit, correspondingly, the batch information and sequence identifier information in sequence number are not also limited with the letter in Fig. 3 with digit, in reality
It can also include digital, spcial character etc., and may include more or fewer digits in the application of border.
S105:The sequence identifier information is converted into second part card number based on the first transformation rule, described second
Dividing card number includes the character of the first quantity.
In this specification embodiment, corresponding transformation rule can be selected to believe sequence identifier according to the character style of card number
Breath is converted into the character style of the card number needed.
As shown in figure 4, Fig. 4 is being converted into the sequence identifier information based on the first transformation rule of this specification offer
A kind of flow diagram of embodiment of second part card number.Specifically, may include:
S401:The sequence identifier information is converted into character string according to the first transformation rule.
In this specification embodiment, first transformation rule may include that sequence identifier information can be converted into business
The algorithm of the character style of required card number.
In a specific embodiment, it is assumed that the character of card number is the form of number, and sequence identifier information is in Fig. 3
For fsdSgqvxdERV, it can choose ASCII character here for fsdSgqvxdERV and be converted into metric digital 1191.
In addition, it should be noted that, the first transformation rule described in this specification embodiment is not limited in above-mentioned thing
Example can also include in practical applications that sequence identifier information can be converted into the character of the required card number of business by other
The sequence identifier information of alphabetical form is converted into binary digit etc. by the algorithm of form, such as selection ASCII character.
S403:Judge whether the quantity of character in the character string is equal to preset quantity threshold value.
In this specification embodiment, it is contemplated that the character quantity of the different card numbers of same business is identical in practical applications
's.A preset quantity threshold value can be set in this specification embodiment, which can be based on the sequence mark
Know the max number of characters amount that character types, character quantity and first transformation rule in information determine.In this way, working as word
The in varying numbers of character can guarantee character in final card number by increasing the modes such as character in preset quantity threshold value in symbol string
Quantity it is consistent.
It in a specific embodiment, is the form of number with the character of card number, sequence identifier information is as in Fig. 3
The form of 11 upper and lower case letters selects ASCII character that sequence identifier information is converted into for metric number.It is based on
11 letters are converted into metric number corresponding to the sequence identifier information of minimum 11 A composition by ASCII character
715, it is up to 1464 corresponding to the sequence identifier information of 11 z composition.Based in 11 alphabetical sequence identifier information
(sequence identifier information is converted by selection ASCII character for character types (letter), character quantity (11) and the first transformation rule
Metric number) determine max number of characters amount be 4.
S405:When the result judged is is, using the character string as the second part card number.
Specifically, when the result that step S403 judges is is, it can be directly using the character string as described second
Divide card number.
In another embodiment, as shown in figure 5, Fig. 5 be this specification provide based on the first transformation rule by the sequence
Column identification information is converted into the flow diagram of another embodiment of second part card number, specifically, can be in step S403
When the result judged is no, the method can also include:
S407:When the judgment result is no, the quantity of character and the preset quantity threshold value in the character string are determined
Between difference.
S409:The difference preset characters are added in the predeterminated position of the character string, it is pre- that the difference will be added
If the character string after character is as the second part card number.
In specification embodiment itself, the preset characters can be the character style with the required card number of target service
Consistent character, such as the character style of the required card number of target service is number, the preset characters can be in 0-9
Any number.
In this specification embodiment, the predeterminated position can be determined in conjunction with practical application request, such as character string is most
Latter position etc..
In a specific embodiment, it is assumed that the preset quantity threshold value is 4, by the sequence identifier information according to the
The quantity of character is 3 in the character string that one transformation rule is converted to.Correspondingly, the quantity of character is preset with described in character string
Difference between amount threshold can be 1.Assuming that character string is 765, preset characters 0, predeterminated position is the last of character string
One, correspondingly, second part card number is 7650.
In addition, it should be noted that, in this specification embodiment, by the sequence identifier information according to the first transformation rule
The quantity of character is less than or equal to the preset quantity threshold value in the character string being converted to.
The above second part card number both ensure that the uniqueness of card number, also be not easy to find out create-rule.
S107:Character in the second part card number is inserted into first part's card number by default insertion rule,
Obtain the first card number of the target service.
In this specification embodiment, the default insertion rule can be configured in conjunction with practical application.
In a specific embodiment, as shown in fig. 6, Fig. 6 be this specification provide by the second part card number
In character be inserted into first part's card number by default insertion rule, obtain one kind of the first card number of the target service
The flow diagram of embodiment.Specifically, may include:
S601:First part's card number is split as the 4th quantity character string, the 4th quantity is less than or equal to the
One quantity adds one.
S603:It is inserted into the character of the first quantity in the second part card number in the 4th quantity character string, obtains
To the first card number of the target service.
In a specific embodiment, as shown in Figure 7, it is assumed that first part's card number is ten digits 0001000001,
Second part card number is 991, i.e. the first quantity is 3.Correspondingly, the 4th quantity is less than or equal to 3+1=4.Assuming that will
0001000001 is split as four character strings 000,100,000,1.Institute is inserted into 4 character strings 000,100,000,1
The character for stating the first quantity in second part card number 991 obtains the first card number 0009100900011, which can be used as
The card number of a certain user's (account) in the target service.
In addition, it should be noted that, in this specification embodiment, on the fractionation form of first part's card number is not limited in
Example corresponding to Fig. 7 is stated, other character strings for adding one less than or equal to the first quantity can also be split into practical applications
Form.In addition, being inserted into the second part card number in the 4th quantity character string in this specification embodiment
The form of the character of one quantity is also not limited to example corresponding to above-mentioned Fig. 7, can also include other forms.
The technical solution provided by above this specification embodiment is as it can be seen that this specification passes through sequentially generation service identification number
It is numbered with card, realizes simple and quick generation first part's card number with uniqueness in operation system, and by by sequence number
In with uniqueness and being not easy find out create-rule sequence identifier information transcoding treated second part card number and this
A part of card number merges to obtain the first card number, avoids the first part's card number sequentially generated and is easy to be seen the generation rule of card number
Then, lead to the case where easily extrapolating other card numbers, guaranteeing the unique of card number and be not easy to calculate the basis of create-rule, mentioning significantly
The efficiency that high card number generates, the simple and quick generation for realizing card number.
The embodiment of the generation method of another card number of the present invention introduced below, Fig. 8 is the life of card number provided by the invention
At the flow diagram of another embodiment of method, present description provides the method operations as described in embodiment or flow chart
Step, but based on routine or may include more or less operating procedure without creative labor.It is enumerated in embodiment
The step of sequence be only one of numerous step execution sequence mode, do not represent and unique execute sequence.In practice
When system or server product execute, it can execute according to embodiment or method shown in the drawings sequence or execute parallel
(such as environment of parallel processor or multiple threads).It is specific as shown in figure 8, the method may include:
S801:Sequentially generate first part's card number of target service in operation system.
S803:The sequence number of the target service is obtained, the sequence number includes sequence identifier information.
S805:The sequence identifier information is converted into second part card number based on the first transformation rule, described second
Dividing card number includes the character of the first quantity.
S807:Character in the second part card number is inserted into first part's card number by default insertion rule,
Obtain the first card number of the target service.
In this specification embodiment, in order to preferably guarantee that final card number is not easy to be deduced create-rule, and sequence number
In batch information be a certain business in operation system identifier number, can be used for distinguishing industry different in same operation system
It is engaged in, the character string after batch information transcoding can be added in this specification embodiment in final card number is as final card
Number.
S809:Obtain the batch information in the sequence number.
S811:The batch information is converted into character string according to the second transformation rule, the character string being converted to is made
For Part III card number.
In this specification embodiment, second transformation rule may include that batch information can be converted into needed for business
The algorithm of the character style for the card number asked.
In a specific embodiment, it is assumed that the character of card number is the form of number, and batch information is with EBGac in Fig. 3
For, it can choose ASCII character here for EBGac and be converted into metric digital 402.
Second transformation rule may be the same or different with first transformation rule;When second conversion
It is regular with the first transformation rule difference when, character in character string that batch information is converted to according to the second transformation rule
Type is identical as character types in the character string for being converted to the sequence identifier information according to the first transformation rule.
In addition, it should be noted that, the second transformation rule described in this specification embodiment is not limited in above-mentioned thing
Example can also include in practical applications that sequence identifier information can be converted into the character of the required card number of business by other
The sequence identifier information of alphabetical form is converted into binary digit etc. by the algorithm of form, such as selection ASCII character.
S813:The first card number for merging the Part III card number and the target service, obtains the target service
Second card number.
In a specific embodiment, it is assumed that the first card number is 0009100900011, and Part III card number 402 is such as schemed
Shown in 9, Fig. 9 is the first card number of merging the Part III card number and the target service that this specification provides, obtains institute
State a kind of schematic diagram of embodiment of the second card number of target service.As can be seen from Fig. 9, the Part III can directly be combined
First card number 0009100900011 of card number 402 and the target service, obtains the second card number 0009100900011402.
Furthermore, it is necessary to explanation, in this specification embodiment, merge the Part III card number and the target industry
The mode of first card number of business is not limited in example corresponding to Fig. 9, can also include other modes in practical applications,
Such as the modes such as the first card number are being added in Part III card number.
The technical solution provided by above this specification embodiment is as it can be seen that this specification passes through sequentially generation service identification number
It is numbered with card, simple and quick generation first part's card number with uniqueness in operation system, and by will be in sequence number
With uniqueness and being not easy find out create-rule sequence identifier information transcoding treated second part card number and this first
Part card number merges to obtain the first card number, avoids the first part's card number sequentially generated and is easy to be seen the generation rule of card number
Then, lead to the case where easily extrapolating other card numbers, in addition, by the batch information being added in the first card number in sequence number, it can
Preferably to guarantee that final card number is not easy to be deduced create-rule, the final card number in target service is obtained.Guaranteeing card number
It is unique and be not easy to calculate the basis of create-rule, substantially increase card number generation efficiency, simple and quick realizes card number
Generation.
The embodiment of the invention also provides a kind of generating means of card number, as shown in Figure 10, the apparatus may include:
First part's card number generation module 1010, can be used for sequentially generating the first part of target service in operation system
Card number;
Sequence identifier data obtaining module 1020 can be used for obtaining the sequence number of the target service, the sequence number
Including sequence identifier information;
Second part card number generation module 1030 can be used for turning the sequence identifier information based on the first transformation rule
Change second part card number into, the second part card number includes the character of the first quantity;
First card number generation module 1040 can be used for the character in the second part card number by default insertion rule
It is inserted into first part's card number, obtains the first card number of the target service.
In another embodiment, as shown in figure 11, first part's card number generation module 1010 may include:
Service identification acquiring unit 1011 can be used for obtaining the service identification number that the target service sequentially generates,
The service identification number includes the character of the second quantity;
Block number acquiring unit 1013, for obtaining the card sequentially generated number, the card number includes third quantity
Character;
Merge processing unit 1015 obtains institute for merging the service identification number and card number of the target service
State first part's card number of target service.
In another embodiment, as shown in figure 12, the second part card number generation module 1030 may include:
Conversion processing unit 1031 can be used for the sequence identifier information being converted into character according to the first transformation rule
String;
Judging unit 1033, can be used for judging whether the quantity of character in the character string is equal to preset quantity threshold value;
First string processing unit 1035 can be used for when the result that the judging unit judges is is, will be described
Character string is as the second part card number;
Wherein, the preset quantity threshold value be based on character types, the character quantity in the sequence identifier information, and
The max number of characters amount that first transformation rule determines.
In another embodiment, as shown in figure 13, the second part card number generation module 1030 can also include:
Difference value determining unit 1037 can be used for determining the character when the result that the judging unit judges is no
Difference in string between the quantity of character and the preset quantity threshold value;
Second string processing unit 1039 can be used for that the difference is added in the predeterminated position of the character string pre-
If character, the character string after the difference preset characters will be added as the second part card number.
In another embodiment, as shown in figure 14, the first card number generation module 1040 may include:
Split cells 1041, can be used for for first part's card number being split as the 4th quantity character string, and described
Four quantity are less than or equal to the first quantity and add one;
Card number insertion process unit 1043 can be used for being inserted into the second part in the 4th quantity character string
The character of first quantity in card number obtains the first card number of the target service.
Apparatus and method embodiment in the Installation practice is based on similarly inventive concept.
The embodiment of the invention also provides a kind of generating means of card number, as shown in figure 15, the apparatus may include:
First part's card number generation module 1510, can be used for sequentially generating the first part of target service in operation system
Card number;
Sequence identifier data obtaining module 1520 can be used for obtaining the sequence number of the target service, the sequence number
Including sequence identifier information;
Second part card number generation module 1530 can be used for turning the sequence identifier information based on the first transformation rule
Change second part card number into, the second part card number includes the character of the first quantity;
First card number generation module 1540 can be used for the character in the second part card number by default insertion rule
It is inserted into first part's card number, obtains the first card number of the target service.
Batch information obtains module 1550, can be used for obtaining the batch information in the sequence number;
Conversion processing module 1560 can be used for the batch information being converted into character string according to the second transformation rule,
Using the character string being converted to as Part III card number;
Second card number generation module 1570 can be used for merging the first of the Part III card number and the target service
Card number obtains the second card number of the target service.
Apparatus and method embodiment in the Installation practice is based on similarly inventive concept.
The embodiment of the invention provides a kind of generation server of card number, the generation server of the card number include processor and
Memory is stored at least one instruction, at least one section of program, code set or instruction set in the memory, this at least one refers to
It enables, at least one section of program, the code set or the instruction set is loaded by the processor and executed to realize such as above method embodiment
The generation method of provided card number.
Memory can be used for storing software program and module, and processor is stored in the software program of memory by operation
And module, thereby executing various function application and data processing.Memory can mainly include storing program area and storage number
According to area, wherein storing program area can application program needed for storage program area, function etc.;Storage data area can store basis
The equipment uses created data etc..In addition, memory may include high-speed random access memory, can also include
Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase
Ying Di, memory can also include Memory Controller, to provide access of the processor to memory.
The embodiment of the invention also provides a kind of structural schematic diagrams of server, please refer to Figure 16, which uses
In the generation method for the card number for implementing to provide in above-described embodiment, specifically, the server architecture may include above-mentioned card
Number generating means.The server 1600 can generate bigger difference because configuration or performance are different, may include one or
More than one central processing unit (Central Processing Units, CPU) 1610 is (for example, one or more are handled
Device) and memory 1630, the storage medium 1620 (such as one of one or more storage application programs 1623 or data 1622
A or more than one mass memory unit).Wherein, memory 1630 and storage medium 1620 can be of short duration storage or persistently deposit
Storage.The program for being stored in storage medium 1620 may include one or more modules, and each module may include to service
Series of instructions operation in device.Further, central processing unit 1610 can be set to communicate with storage medium 1620,
The series of instructions operation in storage medium 1620 is executed on server 1600.Server 1600 can also include one or one
The above power supply 1660, one or more wired or wireless network interfaces 1650, one or more input/output interfaces
1640, and/or, one or more operating systems 1621, such as Windows ServerTM, Mac OS XTM, UnixTM,
LinuxTM, FreeBSDTM etc..
The embodiments of the present invention also provide a kind of storage medium, the storage medium be may be disposed among server to protect
It deposits for realizing relevant at least one instruction of generation method of card number a kind of in embodiment of the method, at least one section of program, code
Collection or instruction set, at least one instruction, at least one section of program, the code set or instruction set are loaded and are executed by the processor for this
To realize the generation method of the card number of above method embodiment offer.
Optionally, in the present embodiment, above-mentioned storage medium can be located in multiple network servers of computer network
At least one network server.Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, only
Read memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), movement
The various media that can store program code such as hard disk, magnetic or disk.
By the embodiment of the generation method of the card number of aforementioned present invention offer, device, server or storage medium as it can be seen that originally
By sequentially generating service identification number and card number in invention, realization is quickly generated with uniqueness first in operation system
Part card number, and by the way that will there is uniqueness in sequence number and be not easy to find out that the sequence identifier information transcoding of create-rule is handled
Second part card number afterwards merges to obtain the first card number with first part's card number, avoids the first part's card number sequentially generated
It is easy to be seen the create-rule of card number, leads to the case where easily extrapolating other card numbers, in addition, by being added in the first card number
Batch information in sequence number can preferably guarantee that final card number is not easy to be deduced create-rule, obtains in target service
Final card number.Guarantee the unique of card number and be not easy to calculate the basis of create-rule, substantially increases the efficiency of card number generation,
Simple and quick realizes card number generation.
It should be noted that:Embodiments of the present invention sequencing is for illustration only, does not represent the advantages or disadvantages of the embodiments.
And above-mentioned this specification specific embodiment is described.Other embodiments are within the scope of the appended claims.One
In a little situations, the movement recorded in detail in the claims or step can be executed according to the sequence being different from embodiment and
Still desired result may be implemented.In addition, process depicted in the drawing not necessarily requires the particular order shown or company
Continuous sequence is just able to achieve desired result.In some embodiments, multitasking and parallel processing it is also possible or
It may be advantageous.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device and
For server example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to side
The part of method embodiment illustrates.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (9)
1. a kind of generation method of card number, which is characterized in that the method includes:
Sequentially generate first part's card number of target service in operation system;
The sequence number of the target service is obtained, the sequence number includes sequence identifier information;
The sequence identifier information is converted into second part card number based on the first transformation rule, the second part card number includes
The character of first quantity;
Character in the second part card number is inserted into first part's card number by default insertion rule, obtains the mesh
First card number of mark business.
2. the method according to claim 1, wherein the first part's card number packet for sequentially generating target service
It includes:
The service identification number that the target service sequentially generates is obtained, the service identification number includes the character of the second quantity;
The card number sequentially generated is obtained, the card number includes the character of third quantity;
The service identification number and card number for merging the target service, obtain first part's card number of the target service.
3. the method according to claim 1, wherein first transformation rule that is based on believes the sequence identifier
Breath is converted into second part card number and includes:
The sequence identifier information is converted into character string according to the first transformation rule, first transformation rule includes that can incite somebody to action
Sequence identifier information is converted into the algorithm of the character style of the required card number of business;
Judge whether the quantity of character in the character string is equal to preset quantity threshold value;
When the result judged is is, using the character string as the second part card number;
Wherein, the preset quantity threshold value is based on character types, the character quantity and described in the sequence identifier information
The max number of characters amount that first transformation rule determines.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
When the judgment result is no, the difference in the character string between the quantity of character and the preset quantity threshold value is determined
Value;
The difference preset characters are added in the predeterminated position of the character string, after the difference preset characters will be added
Character string is as the second part card number.
5. the method according to claim 1, wherein the character by the second part card number is by default
Insertion rule is inserted into first part's card number, and the first card number for obtaining the target service includes:
First part's card number is split as the 4th quantity character string, the 4th quantity is less than or equal to the first quantity and adds
One;It is inserted into the character of the first quantity in the second part card number in the 4th quantity character string, obtains the target
First card number of business.
6. the method according to claim 1, wherein the method also includes:
Obtain the batch information in the sequence number;
The batch information is converted into character string according to the second transformation rule, using the character string being converted to as Part III
Card number, second transformation rule include the calculation that batch information can be converted into the character style of the required card number of business
Method;
The first card number for merging the Part III card number and the target service obtains the second card number of the target service.
7. a kind of generating means of card number, which is characterized in that described device includes:
First part's card number generation module, for sequentially generating first part's card number of target service in operation system;
Sequence identifier data obtaining module, for obtaining the sequence number of the target service, the sequence number includes sequence identifier
Information;
Second part card number generation module, for the sequence identifier information to be converted into second part based on the first transformation rule
Card number, the second part card number include the character of the first quantity;
First card number generation module, for the character in the second part card number to be inserted into described first by default insertion rule
In the card number of part, the first card number of the target service is obtained.
8. a kind of generation server of card number, which is characterized in that the server includes processor and memory, the memory
In be stored at least one instruction, at least one section of program, code set or instruction set, at least one instruction, described at least one
Duan Chengxu, the code set or instruction set are loaded by the processor and are executed to realize as described in claim 1 to 6 is any
The generation method of card number.
9. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, at least in the storage medium
One section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or the instruction set
Loaded by processor and executed the generation method to realize the card number as described in claim 1 to 6 is any.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810556904.0A CN108829650B (en) | 2018-06-01 | 2018-06-01 | Card number generation method, device, server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810556904.0A CN108829650B (en) | 2018-06-01 | 2018-06-01 | Card number generation method, device, server and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108829650A true CN108829650A (en) | 2018-11-16 |
CN108829650B CN108829650B (en) | 2022-08-23 |
Family
ID=64145798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810556904.0A Active CN108829650B (en) | 2018-06-01 | 2018-06-01 | Card number generation method, device, server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108829650B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110135144A (en) * | 2019-05-20 | 2019-08-16 | 北京金山安全软件有限公司 | Invitation code generation method, verification method, device, electronic equipment and storage medium |
CN111339743A (en) * | 2020-02-19 | 2020-06-26 | 中国建设银行股份有限公司 | Account generating method and device |
CN111708921A (en) * | 2020-06-11 | 2020-09-25 | 中国建设银行股份有限公司 | Number selection method, device, equipment and storage medium |
CN111861292A (en) * | 2019-04-25 | 2020-10-30 | 北京京东尚科信息技术有限公司 | Waybill number generation method, apparatus, server and storage medium |
CN112287394A (en) * | 2020-12-15 | 2021-01-29 | 深圳市深圳通有限公司 | Card number desensitization method, device, equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101360159A (en) * | 2008-09-26 | 2009-02-04 | 中兴通讯股份有限公司 | Implementing method and apparatus for independent VC system accommodating different charging cards |
CN101739590A (en) * | 2010-01-25 | 2010-06-16 | 深圳市同洲电子股份有限公司 | Method and device for processing smart card numbers |
CN102609330A (en) * | 2012-02-06 | 2012-07-25 | 中国农业银行股份有限公司 | Document number generating method and document number generating system |
US20120205443A1 (en) * | 2000-05-15 | 2012-08-16 | Privasys, Inc. | Electronic Card |
CN103326994A (en) * | 2012-03-21 | 2013-09-25 | 阿里巴巴集团控股有限公司 | Method and system for processing services |
CN105095263A (en) * | 2014-05-08 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Generation method for card number and apparatus thereof |
CN106156102A (en) * | 2015-04-02 | 2016-11-23 | 阿里巴巴集团控股有限公司 | A kind of card number generates method and apparatus |
CN107622102A (en) * | 2017-09-11 | 2018-01-23 | 平安科技(深圳)有限公司 | Entity card number generation method and terminal device |
CN107767132A (en) * | 2016-08-23 | 2018-03-06 | 百度在线网络技术(北京)有限公司 | Method and apparatus for generating prepaid card password |
-
2018
- 2018-06-01 CN CN201810556904.0A patent/CN108829650B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120205443A1 (en) * | 2000-05-15 | 2012-08-16 | Privasys, Inc. | Electronic Card |
CN101360159A (en) * | 2008-09-26 | 2009-02-04 | 中兴通讯股份有限公司 | Implementing method and apparatus for independent VC system accommodating different charging cards |
CN101739590A (en) * | 2010-01-25 | 2010-06-16 | 深圳市同洲电子股份有限公司 | Method and device for processing smart card numbers |
CN102609330A (en) * | 2012-02-06 | 2012-07-25 | 中国农业银行股份有限公司 | Document number generating method and document number generating system |
CN103326994A (en) * | 2012-03-21 | 2013-09-25 | 阿里巴巴集团控股有限公司 | Method and system for processing services |
CN105095263A (en) * | 2014-05-08 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Generation method for card number and apparatus thereof |
CN106156102A (en) * | 2015-04-02 | 2016-11-23 | 阿里巴巴集团控股有限公司 | A kind of card number generates method and apparatus |
CN107767132A (en) * | 2016-08-23 | 2018-03-06 | 百度在线网络技术(北京)有限公司 | Method and apparatus for generating prepaid card password |
CN107622102A (en) * | 2017-09-11 | 2018-01-23 | 平安科技(深圳)有限公司 | Entity card number generation method and terminal device |
Non-Patent Citations (1)
Title |
---|
一条正在翻身的咸鱼: "银行卡号编码规则及其应用", 《HTTPS://BLOG.CSDN.NET/QQ_40834299/ARTICLE/DETAILS/78929381》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111861292A (en) * | 2019-04-25 | 2020-10-30 | 北京京东尚科信息技术有限公司 | Waybill number generation method, apparatus, server and storage medium |
CN110135144A (en) * | 2019-05-20 | 2019-08-16 | 北京金山安全软件有限公司 | Invitation code generation method, verification method, device, electronic equipment and storage medium |
CN111339743A (en) * | 2020-02-19 | 2020-06-26 | 中国建设银行股份有限公司 | Account generating method and device |
CN111339743B (en) * | 2020-02-19 | 2023-07-18 | 中国建设银行股份有限公司 | Account number generation method and device |
CN111708921A (en) * | 2020-06-11 | 2020-09-25 | 中国建设银行股份有限公司 | Number selection method, device, equipment and storage medium |
CN111708921B (en) * | 2020-06-11 | 2024-04-26 | 中国建设银行股份有限公司 | Number selection method, device, equipment and storage medium |
CN112287394A (en) * | 2020-12-15 | 2021-01-29 | 深圳市深圳通有限公司 | Card number desensitization method, device, equipment and storage medium |
CN112287394B (en) * | 2020-12-15 | 2021-04-06 | 深圳市深圳通有限公司 | Card number desensitization method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108829650B (en) | 2022-08-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108829650A (en) | A kind of generation method of card number, device, server and storage medium | |
JP5020776B2 (en) | Information security measure decision support apparatus and method, and computer program | |
Berry et al. | Requirements engineering | |
US8996464B2 (en) | Efficient partitioning techniques for massively distributed computation | |
CN104731896B (en) | A kind of data processing method and system | |
JP4736713B2 (en) | Systems and methods to support the selection of project members | |
CN110046236A (en) | A kind of search method and device of unstructured data | |
CN106530132A (en) | Power load clustering method and device | |
CN101661486A (en) | Method and system for fragment sorting for hard disk of host comprising virtual computer | |
Balaban et al. | Fast and accurate distance‐based phylogenetic placement using divide and conquer | |
CN106407191B (en) | Data processing method and server | |
CN103164529B (en) | A kind of anti-k nearest neighbor query method based on Voronoi diagram | |
CN113361954A (en) | Attribution analysis method, attribution analysis device, attribution analysis equipment and storage medium | |
CN101446906B (en) | Dispatching method for multi-batch processing tasks and system thereof | |
Khanli et al. | RFOH: a new fault tolerant job scheduler in grid computing | |
DeRonne et al. | Pareto optimal pairwise sequence alignment | |
CN112347101A (en) | Tag data storage method, computer device, and storage medium | |
CN109285015A (en) | A kind of distribution method and system of virtual resource | |
WO2018053761A1 (en) | Data processing method and device, and computing node | |
TW201734831A (en) | Method of assigning application to assigned service cluster and device | |
JP7440352B2 (en) | Educational content creation system and method | |
EP4113313A1 (en) | Control method, information processing device, and control program | |
CN114064982A (en) | Large-scale time-varying graph storage method and system based on snapshot similarity | |
CN114281242A (en) | Method, device and equipment for balancing memory load | |
JP6138701B2 (en) | Distributed calculation method and distributed calculation system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |