CN110493307A - Number condition detecting system and detection method - Google Patents
Number condition detecting system and detection method Download PDFInfo
- Publication number
- CN110493307A CN110493307A CN201910606504.0A CN201910606504A CN110493307A CN 110493307 A CN110493307 A CN 110493307A CN 201910606504 A CN201910606504 A CN 201910606504A CN 110493307 A CN110493307 A CN 110493307A
- Authority
- CN
- China
- Prior art keywords
- phone number
- phone
- file
- detecting system
- state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/535—Tracking the activity of the user
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/65—Telephone numbers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Number condition detecting system provided by the invention, comprising: number obtains module, for obtaining phone number;Number format correction verification module, it is abnormal with the presence or absence of format for verifying each phone number, the phone number not verified by number format labeled as improper number and is abandoned;Number number section abnormality detection module labeled as improper number and will not abandoned by the phone number of number section abnormality detection for carrying out number section abnormality detection to each phone number verified by number format;Carrier data enquiry module obtains a carrier data query result and exports for carrying out corresponding carrier data inquiry to by each phone number of number section abnormality detection;Number state generation module is supplied to user for generating a number state-detection result according to carrier data query result, the present invention can automatic fitration fall invalid number, improve the specific aim of enterprise messaging marketing, advantageously reduce the cost of marketing of enterprise.
Description
Technical field
The present invention relates to intelligent testing technology field more particularly to a kind of number condition detecting system and detection methods.
Background technique
Short message marketing has become a kind of important sales aid of each large enterprises, manufacturer at present.Short message marketing will have good
Whether good marketing effectiveness is effective firstly the need of the phone number for ensuring short message marketing target.Zeng You enterprise did such one point
Analysis, they have found after carrying out number state analysis to 10000 phone numbers, wherein nearly 5500 number abnormal states,
Do not have promotion effect completely.Nearly 2700 numbers in 10000 phone numbers (non intelligent machine, old man in a dormant state
Machine, the intelligent machine for not opening network), wherein 800 numbers are in unactivated state.So if enterprise is to these invalid numbers
The a large amount of marketing resource of enterprise will undoubtedly be consumed by carrying out short message marketing, increase the cost of marketing of enterprise.
Summary of the invention
In view of above-mentioned technical problem, the purpose of the present invention is to provide a kind of number condition detecting systems, with solution
The certainly above problem.
The present invention also provides a kind of number condition detection methods, are realized by the application number condition detecting system.
The present invention solves its technical problem and adopts the technical scheme that, a kind of number condition detecting system is provided, for examining
Surveying phone number whether there is abnormal state, comprising:
Number obtains module, for obtaining phone number;
Number format correction verification module connects the number and obtains module, whether there is for verifying each phone number
Format is abnormal, and the phone number not verified by number format labeled as improper number and is abandoned;
Number number section abnormality detection module, connects the number format correction verification module, for verifying to by number format
Each phone number carry out number section abnormality detection, by not by the phone number of number section abnormality detection labeled as it is non-just
Normal number simultaneously abandons;
Carrier data enquiry module connects the number number section abnormality detection module, for examining extremely to by number section
Each phone number surveyed carries out corresponding carrier data inquiry, obtains a carrier data query result and exports;
Number state generation module connects the carrier data enquiry module, for being looked into according to the carrier data
It askes one number state-detection result of result generation and is supplied to user.
Preferably, it is specifically included in the number format correction verification module:
Number character abnormality detecting unit, it is different with the presence or absence of character or character string in each phone number for detecting
Often, No.1 code character abnormality detection result is obtained;
Number length abnormality detecting unit, for detecting the corresponding number length of each phone number with the presence or absence of different
Often, a number length abnormality detection result is obtained;
Type of number abnormality detecting unit, it is abnormal with the presence or absence of number data types for detecting each phone number,
Obtain a type of number abnormality detection result;
Number format verification unit is separately connected the number character abnormality detecting unit, the number length and examines extremely
Unit and the type of number abnormality detecting unit are surveyed, it is described if the phone number meets any one of following conditions
Number format verification unit labeled as improper number and abandons the phone number:
There are space or null character strings in the phone number;
Number length in the phone number exists abnormal;
There are non-numeric characters in the phone number.
Preferably, include: in the number state generation module
Number state generation unit, for generating the number state-detection knot according to the carrier data query result
Fruit;
Number state sorts out unit, connects the number state generation unit, for according to the number state-detection knot
Various number states present in fruit, sort out the detected phone number, and export categorization results.
Preferably, the carrier data includes that the phone number is corresponding in net state data, flow service condition
And one of flow usage time interval interval censored data or a variety of.
Preferably, the categorization results include real number packet, silencing packet, spacing packet, shut down packet and one of risk packet or
It is a variety of,
Wherein, the corresponding number state of each phone number present in the real number packet is " active ";
The corresponding number state " un-activation more than 6 months of each phone number present in the silencing packet
Spacing, and/or nearly three monthly average use flow to be lower than 30M ";
The corresponding number state of each phone number present in the spacing packet is " spacing occurred in nearly one month
Phenomenon ";
The corresponding number state of each phone number present in shutdown packet is " shutdown ";
The corresponding number state of each phone number present in the risk packet is " to shut down for a long time or do not open language
Sound service ".
Preferably, the number, which obtains in module, includes:
Number import unit, for importing the txt formatted file or xls formatted file that record the phone number;
File format judging unit connects the number import unit, the corresponding tray of file for judging to import
Formula, and txt formatted file and xls formatted file are retained according to judging result;
File size judging unit connects the file format judging unit, for judging the file of retained file
Size, and it is retained less than according to judging result the file of a default file size;
Number line number detection unit connects the file size judging unit, for judging the data of retained file
Line number, and it is retained less than according to judging result the file of a preset data line number;
File type conversion unit connects the number line number detection unit, for sending finally retained file
To the number format correction verification module.
Preferably, the number, which obtains in module, includes:
Data access unit for connecting third party's custom system, and receives the user and passes through the third party user
The cell-phone number sequence that system is submitted;
Phone number string length detection unit, connects the data access unit, for carrying out to the cell-phone number sequence
Length detection, and retain cell-phone number sequence of the phone number string length within the scope of a preset length according to testing result;
User account verification unit connects the phone number string length detection unit, in the cell-phone number sequence
It after being retained, tests to the corresponding user account information of the user, to judge the corresponding user account letter of the user
It whether correct ceases;
Phone number data set forms unit, is separately connected the data access unit and the user account checklist
Member, for carrying out data processing to the cell-phone number sequence of reservation and forming one after the user is examined by account information
Phone number data set.
The present invention also provides a kind of number condition detection methods, are realized by the application number condition detecting system,
Include the following steps:
Step S1, the number condition detecting system obtain phone number in outside;
Step S2, the number condition detecting system verify each phone number with the presence or absence of format exception, will not lead to
The phone number of number format verification is crossed labeled as improper number and is abandoned;
Step S3, the number condition detecting system carry out number section to each phone number verified by number format
Abnormality detection labeled as improper number and will not abandoned by the phone number of number section abnormality detection;
Step S4, the number condition detecting system are corresponded to by each phone number of number section abnormality detection
Carrier data inquiry, obtain a carrier data query result and export;
Step S5, the number condition detecting system generate a number state according to the carrier data query result and examine
It surveys result and is supplied to user.
Preferably, the number acquisition methods in the step S1 include the first acquisition methods, the first acquisition side
Method specifically comprises the following steps:
Step S11, the number condition detecting system record the txt formatted file of the phone number in external importing
Or xls formatted file;
Step S12, the corresponding file format of file that the number condition detecting system judgement imports, and tied according to judgement
Fruit retains txt formatted file and xls formatted file;Step S13, the retained file of the number condition detecting system judgement
File size, and be retained less than according to judging result the file of a default file size;
Step S14, the number of data lines of the retained file of the number condition detecting system judgement, and according to judging result
It is retained less than the file of a preset data line number;
Step S15, the number condition detecting system obtain finally retained file and execute subsequent number state
Detection process.
Preferably, the default file size of the file in the step S13 is no more than 20M.
Preferably, the preset data line number in the file in the step S14 is between 3001~150w row.
Preferably, the number acquisition methods in the step S1 include the second acquisition methods, the second acquisition side
Method specifically comprises the following steps:
Step L1, the number condition detecting system obtain the cell-phone number sequence that user submits in third party's custom system;
Step L2, the number condition detecting system carries out length detection to mobile phone number series, and protects according to testing result
Stay cell-phone number sequence of the phone number string length within the scope of a preset length;
Step L3, the number condition detecting system test to the corresponding user account information of user, to judge to use
Whether the corresponding user account information in family is correct,
If correct, L4 is entered step;
If incorrect, number acquisition process is terminated;
Step L4, the number condition detecting system carry out data processing to the cell-phone number sequence of reservation and form a cell-phone number
Code data set.
Preferably, the preset length range of the cell-phone number sequence is between 11~599.
Preferably, each phone number of the verification in the step S2 is specific with the presence or absence of the method for format exception
Include the following steps:
Step S21, the number condition detecting system, which detects each phone number, whether there is character exception,
If so, there is the abnormal phone number labeled as improper number in character and abandon, subsequently into step
Rapid S22,
If it is not, then entering step S22;
Step S22, the number condition detecting system, which detects each phone number, whether there is length exception,
If so, there is the abnormal phone number labeled as improper number in length and abandon, subsequently into step
Rapid S23,
If it is not, then entering step S23;
Step S23, the number condition detecting system, which detects each phone number, whether there is type of number exception,
If so, the phone number of type of number exception labeled as improper number and is abandoned;
If it is not, being then transferred to number number section abnormality detection process.
It preferably, further include a number state classification process in the step S5, the number state classification process is specific
Include the following steps:
Step S51, the carrier data inquiry knot that the number condition detecting system is fed back according to telecom operators
Fruit analyzes the active degree of each phone number;
Step S52, the number condition detecting system, will be each described according to the active degree of each phone number
Phone number is classified as corresponding number state;
Step S53, the number condition detecting system by each phone number under jack per line state carry out collection and
It forms corresponding data packet and is supplied to user.
Preferably, the data packet includes real number packet, silencing packet, spacing packet, shuts down packet and one of risk packet or more
Kind,
Wherein, the corresponding number state of each phone number present in the real number packet is " active ";
The corresponding number state " un-activation more than 6 months of each phone number present in the silencing packet
Spacing, and/or nearly three monthly average use flow to be lower than 30M ";
The corresponding number state of each phone number present in the spacing packet is " spacing occurred in nearly one month
Phenomenon ";
The corresponding number state of each phone number present in shutdown packet is " shutdown ";
The corresponding number state of each phone number present in the risk packet is " to shut down for a long time or do not open language
Sound service ".
Number condition detecting system provided by the invention can automatic fitration fall invalid number, improve enterprise messaging marketing
Specific aim, advantageously reduce the cost of marketing of enterprise, promote marketing effectiveness.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of number condition detecting system provided in an embodiment of the present invention;
Fig. 2 is the structural schematic diagram of the number acquisition module in number condition detecting system provided in an embodiment of the present invention
One;
Fig. 3 is the structural schematic diagram of the number acquisition module in number condition detecting system provided in an embodiment of the present invention
Two;
Fig. 4 is the structural representation of the number format correction verification module in number condition detecting system provided in an embodiment of the present invention
Figure;
Fig. 5 is the structural representation of the number state generation module in number condition detecting system provided in an embodiment of the present invention
Figure;
Fig. 6 is the method and step that number state-detection is realized using number condition detecting system provided in an embodiment of the present invention
Figure;
Fig. 7 is the first acquisition methods that phone number is obtained using number condition detecting system provided in an embodiment of the present invention
The step of scheme;
Fig. 8 is the second acquisition methods that phone number is obtained using number condition detecting system provided in an embodiment of the present invention
The step of scheme;
Fig. 9 is that each phone number is verified using number condition detecting system provided in an embodiment of the present invention with the presence or absence of format
Abnormal method and step figure;
Figure 10 be using number condition detecting system provided in an embodiment of the present invention each phone number is classified as it is corresponding
The method and step figure of number state.
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 creative labor it is obtained it is all its
His embodiment, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The present invention will be further explained below with reference to the attached drawings and specific examples, but not as the limitation of the invention.
Number condition detecting system provided in an embodiment of the present invention whether there is abnormal state for detecting phone number,
Fig. 1 is please referred to, number condition detecting system includes:
Number obtains module 1, for obtaining phone number;
Number format correction verification module 2, connection number obtain module 1, different with the presence or absence of format for verifying each phone number
Often, the phone number not verified by number format labeled as improper number and is abandoned;
Number number section abnormality detection module 3 connects number format check module 2, for being verified by number format
Each phone number carries out number section abnormality detection, labeled as improper number and will not lost by the phone number of number section abnormality detection
It abandons;
Carrier data enquiry module 4 connects number number section abnormality detection module 3, is used for by number section abnormality detection
Each phone number of detection carries out corresponding carrier data inquiry, obtains a carrier data query result and exports;
Number state generation module 5 connects carrier data enquiry module 4, for according to carrier data query result
It generates a number state-detection result and is supplied to user.
In above-mentioned technical proposal, number condition detecting system supports txt formatted file and the input of xls formatted file, mobile phone
Number can be documented in txt or xls formatted file, number condition detecting system can obtain automatically input txt formatted file or
The phone number recorded in xls formatted file.Meanwhile also supporting access third party's custom system, pass through third to receive user
The phone number that square custom system is submitted.
Specifically, referring to figure 2., number, which obtains in module 1, includes:
Number import unit 11, for importing the txt formatted file or xls formatted file that record phone number;
File format judging unit 12 connects number import unit 11, the corresponding tray of file for judging to import
Formula, and according to judging result reservation txt format and the file of xls format;
File size judging unit 13, threaded file format judging unit 12, for judging the file of retained file
Size, and it is retained less than according to judging result the file of a default file size;
Number line number detection unit 14, threaded file size judging unit 13, for judging the data of retained file
Line number, and it is retained less than according to judging result the file of a preset data line number;
File type conversion unit 15 connects number line number detection unit 14, for sending finally retained file
To number format correction verification module 2.
In above-mentioned technical proposal, default file size is no more than 20M.
Preset data line number is between 3001~150w row.
Alternatively number acquisition modes, referring to figure 3., number, which obtains in module 1, includes:
Data access unit 16 for connecting third party's custom system, and receives user and is mentioned by third party's custom system
The cell-phone number sequence of friendship;
Phone number string length detection unit 17 connects data access unit 16, for carrying out length to mobile phone number series
Detection, and retain cell-phone number sequence of the phone number string length within the scope of a preset length according to testing result;
User account verification unit 18 connects phone number string length detection unit 17, for being protected in cell-phone number sequence
It after staying, tests to the corresponding user account information of user, to judge whether the corresponding user account information of user is correct;
Phone number data set forms unit 19, is separately connected data access unit 16 and user account verification unit 18,
For carrying out data processing to the cell-phone number sequence of reservation and forming a cell-phone number after user is examined by user account information
Code data set.
In above-mentioned technical proposal, the preset length range of cell-phone number sequence is between 11~599.
Referring to figure 4., it is specifically included in number format correction verification module 2:
Number character abnormality detecting unit 21, it is abnormal with the presence or absence of character or character string in each phone number for detecting,
Obtain No.1 code character abnormality detection result;
Number length abnormality detecting unit 22 whether there is exception for detecting the corresponding number length of each phone number,
Obtain a number length abnormality detection result;
Type of number abnormality detecting unit 23, it is abnormal with the presence or absence of number data types for detecting each phone number, it obtains
To a type of number abnormality detection result;
Number format verification unit 24 is separately connected number character abnormality detecting unit 21, number length abnormality detection list
Member 22 and type of number abnormality detecting unit 23, if phone number meets any one of following conditions, number format verification
Unit 24 labeled as improper number and abandons phone number;
There are space or null character strings in phone number;
Number length in phone number exists abnormal;
There are non-numeric characters in phone number.
In above-mentioned technical proposal, the method that number character abnormality detecting unit 21 detects phone number character exception is judgement
It whether there is null character or null character string in phone number, if there are null character or null character strings in phone number, by the hand
Machine number mark is improper number and abandons.
It is to judge mobile phone that the length that number length abnormality detecting unit 22 detects phone number, which whether there is abnormal method,
Whether the length of number is 11, if it is not, the phone number is then classified as improper number and is abandoned.
Whether Yi Chang method is the number data types of the detection phone number of type of number abnormality detecting unit 23, judgement
The whether all digital forms of phone number, if it is not, the phone number is then classified as improper number and is abandoned.
Finally, number format verification unit 24 abandons improper number, the remaining cell-phone number in the phone number of input
Code output carries out number section abnormality detection to number number section abnormality detection module 3.
Number number section abnormality detection module 3 preferably extracts each mobile phone after examining by number format using Bisection Algorithms
Preceding 7 bit digital of number carries out number section abnormality detection as the number section of the corresponding phone number.Due to telecom operators, such as in
The number section for the phone number that state's movement, China Telecom, China Unicom provide all is fixed number section, these number sections all meet accordingly
Pre-defined rule, so number condition detecting system provided in this embodiment can be by each cell-phone number after being verified by number format
Code is uploaded to one and is stored in the server for having issued number section of each operator, number section matching is carried out, to detect each phone number
With the presence or absence of number section exception.It is of course also possible to preset the issued number number of each operator in number condition detecting system
Then each phone number and pre-stored number number section are carried out Data Matching, whether there is with detecting each phone number by section
Number section is abnormal.
Carrier data enquiry module 4 is then corresponding in net state data, wireless network for inquiring each phone number
One of network flow service condition and flow usage time interval interval censored data are a variety of.Fortune in number condition detecting system
Battalion's quotient data enquiry module needs the inquiry system provided with operator to establish communication connection, and the inquiry system provided to operator
System submits carrier data inquiry request, and to obtain the corresponding carrier data of each phone number, then carrier data is inquired
The carrier data for the data query system feedback that module is provided according to operator, one carrier data query result of generation are simultaneously defeated
Out.
Referring to figure 5., include: in number state generation module 5
Number state generation unit 51, for generating number state-detection result according to carrier data query result;
Number state sorts out unit 52, connects number state generation unit 51, for according in number state-detection result
Existing various number states, sort out detected phone number, and export categorization results.Here so-called " tested
The phone number of survey " actually only includes the phone number (namely undiscarded phone number) remained.
Specifically, categorization results are made by carrier data query result.According to each phone number netted
The difference of state data, flow service condition and flow usage time interval interval censored data exists in carrier data query result
Each phone number can be classified as five number states substantially, respectively the state of phone number is " active ", phone number shape
State is " spacing of the un-activation more than 6 months, and/or nearly three monthly average use flow to be lower than 30M ", number state is " close
Occurred spacing phenomenon in one month ", number state be " shutdown " and number state be " for a long time shut down or do not open voice clothes
Business ".
Number state sorts out unit 52 and each phone number under various number states is classified as five categorization results,
Respectively real number packet, shuts down packet and risk packet at silencing packet, spacing packet,
Wherein, each phone number set that number state is " active " is classified as real number packet;
It is that " spacing, and/or nearly three monthly average of the un-activation more than 6 months are lower than using flow by number state
Each phone number set of 30M " is classified as silencing packet;
Each phone number set that number state is " spacing phenomenon occurred in nearly one month " is classified as spacing packet;
Each phone number set that number state is " shutdown " is classified as shutdown packet;
Each phone number set that number state is " shutdown for a long time or not opening voice service " is classified as risk packet.
In above-mentioned technical proposal, judge whether the number state of phone number is that " active " according to circumstances can be independently arranged,
For example operator's feedback data shows that the phone number daily air time is greater than 1 minute, can determine whether that the phone number is " living
Jump " state.
In order to solve user's charging problem of the number condition detecting system, Fig. 1, the number shape that embodiment provides are please referred to
State detection system further include:
Module of deducting fees 6 connects number state generation module 5, for generating the inspection of number state in number state generation module 5
Prompt user carries out operation for paying the fee after surveying result, and number state generation module 5 completes information according to the payment for the transmission of module 6 of deducting fees
Number state-detection result is supplied to user.For example, user can just download categorization results after the completion of user charges.Certainly
System can also set the charging standard of each categorization results, for example, system can prompt user real number packet, silencing packet, spacing packet,
It shuts down and wraps charging standard corresponding with risk packet, and be supplied to the download address of each categorization results of user, when user's needle
Corresponding categorization results can be just downloaded after paying to each categorization results.
Fig. 6 is please referred to, the present embodiment additionally provides a kind of number condition detection method, by applying above-mentioned number state
Detection system is realized, is included the following steps:
Step S1, number condition detecting system obtain phone number in outside;
Step S2, number condition detecting system examine each phone number abnormal with the presence or absence of format, will not pass through number lattice
The phone number of formula verification labeled as improper number and abandons;
Step S3, number condition detecting system carry out number section to each phone number verified by number format and examine extremely
It surveys, labeled as improper number and will not abandoned by the phone number of number section abnormality detection;
Step S4, number condition detecting system carry out corresponding operator to by each phone number of number section abnormality detection
Data query obtains a carrier data query result and exports;
Step S5, number condition detecting system generate a number state-detection result according to carrier data query result and mention
Supply user.
Fig. 7 is please referred to, the number acquisition methods in above-mentioned steps S1 include the first acquisition methods, and the first acquisition methods are specific
Include the following steps:
Step S11, number condition detecting system record the txt formatted file or xls lattice of phone number in external importing
Formula file;
Step S12, the corresponding file format of file that the judgement of number condition detecting system imports, and protected according to judging result
Stay txt formatted file and xls formatted file;
Step S13, the file size of the retained file of number condition detecting system judgement, and retained according to judging result
Less than the file of a default file size;
Step S14, the number of data lines of the retained file of number condition detecting system judgement, and retained according to judging result
Less than the file of a preset data line number;
Step S15, number condition detecting system obtain finally retained file and execute subsequent number state-detection
Process.
In above-mentioned technical proposal, the default file size of the file in step S13 is no more than 20M.
Preset data line number in file in step S14 is between 3001~150w row.
Fig. 8 is please referred to, the number acquisition methods in step S1 include the second acquisition methods, and the second acquisition methods specifically include
Following steps:
Step L1, number condition detecting system obtain the cell-phone number sequence that user submits in third party's custom system;
Step L2, number condition detecting system carries out length detection to mobile phone number series, and retains hand according to testing result
Cell-phone number sequence of the machine number string length within the scope of a preset length;
Step L3, the inspection of number condition detecting system tests to the corresponding user account information of user, to judge to use
Whether the corresponding user account information in family is correct,
If correct, L4 is entered step;
If incorrect, number acquisition process is terminated;
Step L4, number condition detecting system carry out data processing to the cell-phone number sequence of reservation and form a phone number number
According to collection.
In above-mentioned steps, the preset length range of cell-phone number sequence is between 11~599.
Fig. 9 is please referred to, the method that each phone number of inspection in above-mentioned steps S2 whether there is format exception specifically includes
Following steps:
Step S21, number condition detecting system, which detects each phone number, whether there is character exception,
If so, there is abnormal phone number labeled as improper number in character and abandon, subsequently into step
S22,
If it is not, then entering step S22;
Step S22, number condition detecting system, which detects each phone number, whether there is length exception,
If so, there is abnormal phone number labeled as improper number in length and abandon, subsequently into step
S23,
If it is not, then entering step S23;
Step S23, number condition detecting system, which detects each phone number, whether there is type of number exception,
If so, the phone number of type of number exception labeled as improper number and is abandoned,;
If it is not, being then transferred to number number section abnormality detection process.
Figure 10 is please referred to, further includes a number state classification process in step S5, number state classification process specifically includes
Following steps:
Step S51, the carrier data query result that number condition detecting system is fed back according to telecom operators, analysis are each
The active degree of phone number;
Each phone number is classified as pair according to the active degree of each phone number by step S52, number condition detecting system
The number state answered;
Each phone number under jack per line state is collected and is formed correspondence by step S53, number condition detecting system
Data packet be supplied to user.
In above-mentioned technical proposal, data packet includes real number packet, silencing packet, spacing packet, shuts down packet and one of risk packet
Or it is a variety of,
Wherein, the corresponding number state of each phone number present in real number packet is " active ";
The corresponding number state of each phone number present in silencing packet be " spacing of the un-activation more than 6 months and/
Or nearly three monthly average are lower than 30M " using flow;
The corresponding number state of each phone number present in spacing packet is " spacing phenomenon occurred in nearly one month ";
Shutting down the corresponding number state of each phone number present in packet is " shutdown ";
The corresponding number state of each phone number present in risk packet is " shut down for a long time or do not open voice service ".
In above-mentioned technical proposal, number condition detecting system can at least support two kinds of number condition detection methods, one is
Number state on-line checking, another is then number state API (application programming interface) detection.
Above two number state-detection mode is simply introduced below:
One, number state on-line checking process
Firstly, the online uploading detection file of user, detection file is preferably txt formatted file and xls formatted file.txt
In formatted file, the input form of phone number is one phone number of a line;In xls formatted file, need phone number
It is inputted in the first row of first job table line by line from top to down, likewise, every a line in worksheet can only input one
Phone number.
In order to improve the detection efficiency of number condition detecting system, detection file size is preferably lower than or equal to 20M, and examines
The line number surveyed in file is preferably greater than or equal to 3000 and is less than or equal to 1,500,000, that is to say, that is loaded into detection file
Phone number be preferably greater than or equal to 3000, and be less than or equal to 1,500,000.
The detection file of upload is saved to after MongoDB (database based on distributed document storage), number
Condition detecting system starts to read the data in txt file or xls file automatically.Number condition detecting system preferably passes through canonical
Expression formula filters out number length not and is 11 and is not the phone number of pure digi-tal, then generate new txt detection file with
The txt file or xls file of input are substituted, and newly-generated txt detection file is uploaded in server.
Finally, number condition detecting system carries out number state-detection until having detected to newly-generated txt detection file
It is downloaded on the net at number state-detection result is generated with being supplied to user.
In order to allow user to know detection progress at the first time, it is preferable that number condition detecting system is completed in detection
It will send to detect and complete prompt information to user.
Multiple users detect the same detection file in the same time in order to prevent, in user's uploading detection file
Afterwards, number condition detecting system will set Redis synchrolock for each detection of each user.Number condition detecting system into
Redis synchrolock can be detected before line number code state-detection first whether there is, if Redis synchrolock is not present, start automatic
Detection process can prompt the user detection file currently in detection process if Redis synchrolock exists.
Redisi is a key-value storage system.
Two, number state API detection process
Firstly, user submits call request, number condition detecting system obtains interface parameters, the phone number that user submits
String, API account and API password;
Whether the length that number condition detecting system then detects cell-phone number sequence is greater than or equal to 11 and is less than or waits
In 599,
If so, according to API account and the API cipher inquiry user information, to ensure user's necessary being;
If it is not, then prompting user mobile phone number sequence incorrect;
Then, number condition detecting system obtains phone number according to English half-angle comma character segmentation cell-phone number sequence
Data set and, and to the data set and traversing, remove length not and be 11 and be not the number of pure digi-tal;
Finally, number condition detecting system carries out number state-detection for data sets with inner each phone number, and
It will test result and return to user.
The foregoing is merely preferred embodiments of the present invention, are not intended to limit embodiments of the present invention and protection model
It encloses, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content
Equivalent replacement and obviously change obtained scheme, should all be included within the scope of the present invention.
Claims (16)
1. a kind of number condition detecting system, for detecting phone number with the presence or absence of abnormal state characterized by comprising
Number obtains module, for obtaining phone number;
Number format correction verification module connects the number and obtains module, for verifying each phone number with the presence or absence of format
It is abnormal, the phone number not verified by number format labeled as improper number and is abandoned;
Number number section abnormality detection module, connects the number format correction verification module, for each to being verified by number format
The phone number carries out number section abnormality detection, will not be labeled as improper number by the phone number of number section abnormality detection
Code simultaneously abandons;
Carrier data enquiry module connects the number number section abnormality detection module, for by number section abnormality detection
Each phone number carries out corresponding carrier data inquiry, obtains a carrier data query result and exports;
Number state generation module connects the carrier data enquiry module, ties for being inquired according to the carrier data
Fruit generates a number state-detection result and is supplied to user.
2. number condition detecting system as described in claim 1, which is characterized in that specific in the number format correction verification module
Include:
Number character abnormality detecting unit, it is abnormal with the presence or absence of character or character string in each phone number for detecting, it obtains
To No.1 code character abnormality detection result;
Number length abnormality detecting unit is obtained for detecting the corresponding number length of each phone number with the presence or absence of exception
To a number length abnormality detection result;
Type of number abnormality detecting unit, it is abnormal with the presence or absence of number data types for detecting each phone number, it obtains
One type of number abnormality detection result;
Number format verification unit is separately connected the number character abnormality detecting unit, the number length abnormality detection list
The first and described type of number abnormality detecting unit, if the phone number meets any one of following conditions, the number
Format check unit labeled as improper number and abandons the phone number:
There are space or null character strings in the phone number;
Number length in the phone number exists abnormal;
There are non-numeric characters in the phone number.
3. number condition detecting system as described in claim 1, which is characterized in that wrapped in the number state generation module
It includes:
Number state generation unit, for generating the number state-detection result according to the carrier data query result;
Number state sorts out unit, connects the number state generation unit, for according in the number state-detection result
Existing various number states, sort out the detected phone number, and export categorization results.
4. number condition detecting system as claimed in claim 3, which is characterized in that the carrier data includes the mobile phone
Number is corresponding in one of net state data, flow service condition and flow usage time interval interval censored data or a variety of.
5. number condition detecting system as claimed in claim 4, which is characterized in that the categorization results include real number packet, sink
One of silent packet, spacing packet, shutdown packet and risk packet are a variety of,
Wherein, the corresponding number state of each phone number present in the real number packet is " active ";
The corresponding number state of each phone number present in the silencing packet be " spacing of the un-activation more than 6 months,
And/or nearly three monthly average are lower than 30M " using flow;
The corresponding number state of each phone number present in the spacing packet is " it is existing to occur spacing in nearly one month
As ";
The corresponding number state of each phone number present in shutdown packet is " shutdown ";
The corresponding number state of each phone number present in the risk packet is " to shut down for a long time or do not open voice clothes
Business ".
6. number condition detecting system as described in claim 1, which is characterized in that the number, which obtains in module, includes:
Number import unit, for importing the txt formatted file or xls formatted file that record the phone number;
File format judging unit connects the number import unit, the corresponding file format of file for judging to import, and
Retain the file of txt format and xls format according to judging result;
File size judging unit connects the file format judging unit, for judging the file size of retained file,
And the file of a default file size is retained less than according to judging result;
Number line number detection unit connects the file size judging unit, for judging the number of data lines of retained file,
And the file of a preset data line number is retained less than according to judging result;
File type conversion unit connects the number line number detection unit, for finally retained file to be sent to institute
State number format correction verification module.
7. number condition detecting system as described in claim 1, which is characterized in that the number, which obtains in module, includes:
Data access unit for connecting third party's custom system, and receives the user and passes through third party's custom system
The cell-phone number sequence of submission;
Phone number string length detection unit, connects the data access unit, for carrying out length to the cell-phone number sequence
Detection, and retain cell-phone number sequence of the phone number string length within the scope of a preset length according to testing result;
User account verification unit connects the phone number string length detection unit, for being protected in the cell-phone number sequence
It after staying, tests to the corresponding user account information of the user, to judge that the corresponding user account information of the user is
It is no correct;
Phone number data set forms unit, is separately connected the data access unit and the user account verification unit, uses
In after the user is examined by user account information, data processing is carried out to the cell-phone number sequence of reservation and is formed on the other hand
Machine number data collection.
8. a kind of number condition detection method is realized by number condition detecting system of the application as described in power 1-7 any one,
It is characterized by comprising the following steps:
Step S1, the number condition detecting system obtain phone number in outside;
Step S2, it is abnormal with the presence or absence of format that the number condition detecting system verifies each phone number, will not by number
The phone number of code format check labeled as improper number and abandons;
Step S3, it is abnormal that the number condition detecting system carries out number section to each phone number verified by number format
Detection labeled as improper number and will not abandoned by the phone number of number section abnormality detection;
Step S4, the number condition detecting system carry out corresponding fortune to by each phone number of number section abnormality detection
Quotient data inquiry is sought, a carrier data query result is obtained and exports;
Step S5, the number condition detecting system generate a number state-detection knot according to the carrier data query result
Fruit is supplied to user.
9. number condition detection method as claimed in claim 8, the number acquisition methods in the step S1 include the
One acquisition methods, first acquisition methods specifically comprise the following steps:
Step S11, the number condition detecting system in external importing record the phone number txt formatted file or
Xls formatted file;
Step S12, the corresponding file format of file that the number condition detecting system judgement imports, and protected according to judging result
Stay txt formatted file and xls formatted file;
Step S13, the file size of the retained file of the number condition detecting system judgement, and retained according to judging result
Less than the file of a default file size;
Step S14, the number of data lines of the retained file of the number condition detecting system judgement, and retained according to judging result
Less than the file of a preset data line number;
Step S15, the number condition detecting system obtain finally retained file and execute subsequent number state-detection
Process.
10. number condition detection method as claimed in claim 9, which is characterized in that the file in the step S13
Default file size is no more than 20M.
11. number condition detection method as claimed in claim 9, which is characterized in that in the file in the step S14
Preset data line number between 3001~150w row.
12. number condition detection method as claimed in claim 8, which is characterized in that the number in the step S1 obtains
Taking method includes the second acquisition methods, and second acquisition methods specifically comprise the following steps:
Step L1, the number condition detecting system obtain the cell-phone number sequence that user submits in third party's custom system;
Step L2, the number condition detecting system carries out length detection to mobile phone number series, and retains hand according to testing result
Cell-phone number sequence of the machine number string length within the scope of a preset length;
Step L3, the number condition detecting system tests to the corresponding user account information of user, to judge user couple
Whether the user account information answered is correct,
If correct, L4 is entered step;
If incorrect, number acquisition process is terminated;
Step L4, the number condition detecting system carry out data processing to the cell-phone number sequence of reservation and form a phone number number
According to collection.
13. number condition detection method as claimed in claim 12, which is characterized in that the preset length of the cell-phone number sequence
Range is between 11~599.
14. number condition detection method as claimed in claim 8, which is characterized in that the verification in the step S2 is each
The phone number specifically comprises the following steps: with the presence or absence of the method for format exception
Step S21, the number condition detecting system, which detects each phone number, whether there is character exception,
If so, there is the abnormal phone number labeled as improper number in character and abandon, subsequently into step
S22,
If it is not, then entering step S22;
Step S22, the number condition detecting system, which detects each phone number, whether there is length exception,
If so, there is the abnormal phone number labeled as improper number in length and abandon, subsequently into step
S23,
If it is not, then entering step S23;
Step S23, the number condition detecting system, which detects each phone number, whether there is type of number exception,
If so, the phone number of type of number exception labeled as improper number and is abandoned;
If it is not, being then transferred to number number section abnormality detection process.
15. number condition detection method as claimed in claim 8, which is characterized in that further include a number in the step S5
State classification process, the number state classification process specifically comprise the following steps:
Step S51, the carrier data query result that the number condition detecting system is fed back according to telecom operators, point
Analyse the active degree of each phone number;
Step S52, the number condition detecting system is according to the active degree of each phone number, by each mobile phone
Number is classified as corresponding number state;
Each phone number under jack per line state is collected and is formed by step S53, the number condition detecting system
Corresponding data packet is supplied to user.
16. number condition detection method as claimed in claim 15, which is characterized in that the data packet includes real number packet, sinks
One of silent packet, spacing packet, shutdown packet and risk packet are a variety of,
Wherein, the corresponding number state of each phone number present in the real number packet is " active ";
The corresponding number state of each phone number present in the silencing packet be " spacing of the un-activation more than 6 months,
And/or nearly three monthly average are lower than 30M " using flow;
The corresponding number state of each phone number present in the spacing packet is " it is existing to occur spacing in nearly one month
As ";
The corresponding number state of each phone number present in shutdown packet is " shutdown ";
The corresponding number state of each phone number present in the risk packet is " to shut down for a long time or do not open voice clothes
Business ".
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910606504.0A CN110493307A (en) | 2019-07-05 | 2019-07-05 | Number condition detecting system and detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910606504.0A CN110493307A (en) | 2019-07-05 | 2019-07-05 | Number condition detecting system and detection method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110493307A true CN110493307A (en) | 2019-11-22 |
Family
ID=68546606
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910606504.0A Pending CN110493307A (en) | 2019-07-05 | 2019-07-05 | Number condition detecting system and detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110493307A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115146901A (en) * | 2022-05-09 | 2022-10-04 | 石溪信息科技(上海)有限公司 | Marketing cost loss recovery method and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103369097A (en) * | 2012-03-26 | 2013-10-23 | 富泰华工业(深圳)有限公司 | Mobile communication terminal and method for managing telephone numbers |
JP5526293B1 (en) * | 2014-01-28 | 2014-06-18 | 株式会社ジンテック | Identification of the communication terminal number assigned to the terminal of the data communication dedicated service that uses the mobile phone wireless communication infrastructure |
CN104580637A (en) * | 2014-12-30 | 2015-04-29 | 小米科技有限责任公司 | Telephone number marking method, terminal and cloud server |
CN105187632A (en) * | 2015-08-06 | 2015-12-23 | 北京金山安全软件有限公司 | Method and device for determining mobile phone number |
CN106358220A (en) * | 2015-07-17 | 2017-01-25 | 腾讯科技(深圳)有限公司 | Detection method of abnormal contact person information, device and system |
CN109219051A (en) * | 2018-11-28 | 2019-01-15 | 上海大汉三通通信股份有限公司 | It is a kind of falseness number determine method, apparatus, equipment and readable storage medium storing program for executing |
CN109600738A (en) * | 2018-12-10 | 2019-04-09 | 平安科技(深圳)有限公司 | Updating method of user information, device, equipment and storage medium |
-
2019
- 2019-07-05 CN CN201910606504.0A patent/CN110493307A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103369097A (en) * | 2012-03-26 | 2013-10-23 | 富泰华工业(深圳)有限公司 | Mobile communication terminal and method for managing telephone numbers |
JP5526293B1 (en) * | 2014-01-28 | 2014-06-18 | 株式会社ジンテック | Identification of the communication terminal number assigned to the terminal of the data communication dedicated service that uses the mobile phone wireless communication infrastructure |
CN104580637A (en) * | 2014-12-30 | 2015-04-29 | 小米科技有限责任公司 | Telephone number marking method, terminal and cloud server |
CN106358220A (en) * | 2015-07-17 | 2017-01-25 | 腾讯科技(深圳)有限公司 | Detection method of abnormal contact person information, device and system |
CN105187632A (en) * | 2015-08-06 | 2015-12-23 | 北京金山安全软件有限公司 | Method and device for determining mobile phone number |
CN109219051A (en) * | 2018-11-28 | 2019-01-15 | 上海大汉三通通信股份有限公司 | It is a kind of falseness number determine method, apparatus, equipment and readable storage medium storing program for executing |
CN109600738A (en) * | 2018-12-10 | 2019-04-09 | 平安科技(深圳)有限公司 | Updating method of user information, device, equipment and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115146901A (en) * | 2022-05-09 | 2022-10-04 | 石溪信息科技(上海)有限公司 | Marketing cost loss recovery method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
He et al. | Characterizing code clones in the ethereum smart contract ecosystem | |
US20210218761A1 (en) | Method and apparatus for preventing advertisement-related fraud, electronic device, and storage medium | |
US8918424B2 (en) | Managing homeowner association messages | |
CN111970236B (en) | Cross-network data transmission method and device | |
CN110348850A (en) | The arbitrage risk checking method and device, electronic equipment of polymerization payment trade company | |
CN110519115A (en) | Gateway interface test method, terminal device, storage medium and device | |
CN103777961B (en) | A kind of charging for mobile applications software development kit, Mobile solution and mobile terminal | |
CN112100250B (en) | Data processing method and device | |
CN107465698A (en) | A kind of data verification method and server | |
CN101389085B (en) | Rubbish short message recognition system and method based on sending behavior | |
CN109802915A (en) | A kind of telecommunication fraud detection processing method and device | |
CN104869135B (en) | The method and terminal of data interaction | |
CN107682328A (en) | A kind of data verification method and client | |
CN104994219A (en) | Data processing method and system | |
CN107844518A (en) | Assess the method for specifying APP downloads, data server, packing platform and system | |
CN108022096A (en) | A kind of method of mobile payment, device, terminal and readable storage medium storing program for executing | |
CN110493307A (en) | Number condition detecting system and detection method | |
CN104462934B (en) | A kind of information processing method and electronic equipment | |
CN105657683A (en) | Processing method, processing device and processing system for secondary mobile phone number selling | |
CN103220662B (en) | A kind of processing method of application program and mobile terminal | |
CN108848061B (en) | User information transmission method and terminal equipment | |
CN104994220A (en) | Data processing method and system | |
CN106897842A (en) | A kind of data processing method based on demand response resource, apparatus and system | |
CN108804501A (en) | A kind of method and device of detection effective information | |
CN100387075C (en) | Rate treating device, short message charge-deducting system and method |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191122 |