[go: up one dir, main page]

CN106303099B - A method, device and system for verifying the validity of a user's communication number - Google Patents

A method, device and system for verifying the validity of a user's communication number Download PDF

Info

Publication number
CN106303099B
CN106303099B CN201510238093.6A CN201510238093A CN106303099B CN 106303099 B CN106303099 B CN 106303099B CN 201510238093 A CN201510238093 A CN 201510238093A CN 106303099 B CN106303099 B CN 106303099B
Authority
CN
China
Prior art keywords
user
communication number
verified
communication
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510238093.6A
Other languages
Chinese (zh)
Other versions
CN106303099A (en
Inventor
张艳华
刘童桐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201510238093.6A priority Critical patent/CN106303099B/en
Publication of CN106303099A publication Critical patent/CN106303099A/en
Application granted granted Critical
Publication of CN106303099B publication Critical patent/CN106303099B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides a kind of method, apparatus and system for verifying user's communicating number validity.The method for verifying user's communicating number validity, provides the merchant platform of service applied to for user's communicating number owning user to be verified, comprising: according to user's communicating number to be verified, judge communication operation platform belonging to user's communicating number to be verified;The query interface provided to communication operation platform sends query information, obtains the current status information of user's communicating number to be verified from communication operation platform;According to the status information that communication operation platform returns, it is judged as whether verifying user's communicating number provides service effective.Above scheme, businessman is before providing service for user, first judging whether user's communicating number is in can effective status serve it, only service is provided in effective status Shi Caiwei user, such mode, it avoids businessman directly user to be caused to bother to user's initiation verifying, effectively promotes product/business usage experience that user provides businessman.

Description

一种验证用户通信号码有效性的方法、装置及系统A method, device and system for verifying the validity of a user's communication number

技术领域technical field

本发明涉及通信技术领域,特别涉及一种验证用户通信号码有效性的方法、装置及系统。The present invention relates to the field of communication technologies, and in particular, to a method, device and system for verifying the validity of a user's communication number.

背景技术Background technique

随着通信技术发展,移动通信已越来越广泛应用在人们的日常生活中,就国内而言,主要有中国电信、中国移动、中国联通三大基础通信服务提供商,即通常所说的通信运营商。作为个人消费者用户,要使用通信服务,必须先从三大通信运营商处申请一个专属于个人的通信号码。With the development of communication technology, mobile communication has become more and more widely used in people's daily life. Domestically, there are mainly three basic communication service providers: China Telecom, China Mobile and China Unicom. operator. As an individual consumer user, in order to use communication services, you must first apply for a personal communication number from the three major communication operators.

当前,在国家要求个人通信号码实名制的背景下,国内各行业的商家越来越多依赖于通过通信号码作为用户身份认证的标识,为用户提供高品质和高便捷性的服务,但仅有用户通信号码,商家仍然难以准确地获知用户通信号码的最新状态(比如:是不是已经停机),在此种情况下,会存在商家提供的服务资源浪费或安全风险的问题。At present, under the background that the country requires a real-name system for personal communication numbers, domestic businesses in various industries are increasingly relying on the communication number as a sign of user identity authentication to provide users with high-quality and high-convenience services, but only users It is still difficult for the merchant to accurately know the latest status of the user's communication number (for example, whether it has been shut down). In this case, there will be a waste of service resources provided by the merchant or a security risk.

例如:不能防控针对二次放号用户的风险,某商家在向最终用户提供可通过通信号码访问的关键服务时(例如通过手机号码找回密码),若该通信号码为二次放号号码,则新的所有者可访问该号码前任用户的账户,从而产生安全风险。例如:金融账户的财产损失、社交软件的冒名诈骗等;不能控制推广和服务成本,某商家在向最终用户提供基于用户通信号码的服务或推广动作时(例如下发短信),如不能获悉通信号码是否注销,则会产生服务资源浪费、被骚扰引起投诉以及服务未能覆盖真正用户的情况,而且任何问题都有可能放大,最终造成商家不必要的损失。For example, it is impossible to prevent and control the risk of users who have re-issued numbers. When a merchant provides end users with key services that can be accessed through communication numbers (such as retrieving passwords through mobile phone numbers), if the communication number is a re-issued number , the new owner can access the account of the previous user of the number, creating a security risk. For example: property loss of financial accounts, impersonation and fraud of social software, etc.; promotion and service costs cannot be controlled. When a merchant provides services or promotion actions based on the user's communication number to end users (such as sending text messages), if they cannot learn about the communication Whether the number is cancelled or not will result in waste of service resources, complaints caused by harassment, and failure of services to cover real users, and any problems may be magnified, eventually causing unnecessary losses to merchants.

目前商家验证用户通信号码有效性主要基于以下2种方式:At present, merchants verify the validity of the user's communication number mainly based on the following two methods:

客服人员外呼:如车险服务公司会通过人工座席以外呼用户通信号码的方式验证通信号码有效性;Outbound call by customer service personnel: For example, the auto insurance service company will verify the validity of the communication number by calling the user's communication number through the manual agent;

短信验证码比对:如手机银行APP(APP,即Application,应用程序)在提供服务前下发短信验证码到用户移动通信终端,要求用户输入提交后进行一致性比对,验证通信号码有效性。SMS verification code comparison: For example, the mobile banking APP (APP, namely Application, application) sends SMS verification code to the user's mobile communication terminal before providing services, and requires the user to input and submit it for consistency comparison to verify the validity of the communication number .

但是以上2种实现方式都有一些缺点:However, the above two implementations have some disadvantages:

方式1:成本高,且打扰用户;商家需长期雇佣客户服务人员从事外呼工作,人力成本高;同时,各个商家采取外呼方式仅是为验证通信号码有效性,会造成对用户不必要的打扰,易引起用户反感。Method 1: High cost and disturbing users; merchants need to hire customer service personnel for outbound calls for a long time, and the labor cost is high; at the same time, various merchants use outbound calls only to verify the validity of the communication number, which will cause unnecessary calls to users. Disturbing, it is easy to arouse users' disgust.

方式2:使用繁琐,个人消费者体验不好;个人消费者每次获得服务前,都需要重新输入短信验证码,造成了使用上的不方便。Method 2: It is cumbersome to use, and the personal consumer experience is not good; before each individual consumer obtains the service, he needs to re-enter the SMS verification code, which causes inconvenience in use.

同时,以上2种方式都不能解决一个问题:二次放号,即通信号码曾被回收过,经通信运营商二次放号,所归属的用户已变更,如果对于该通信号码的当前归属用户,是申请商家服务的原始用户,商家应提供服务;但如果该通信号码的当前归属用户不是申请商家服务的原始用户,商家如果错误的为当前用户提供了服务,则有可以泄露原始用户的个人隐私信息,对原始用户产生财产安全风险,或造成商家服务资源的浪费。At the same time, neither of the above two methods can solve a problem: the second number assignment, that is, the communication number has been recycled, and the user assigned by the communication operator has changed after the second assignment. , is the original user who applied for the service of the merchant, and the merchant should provide the service; but if the current attributable user of the communication number is not the original user who applied for the service of the merchant, if the merchant wrongly provides the service for the current user, there may be an individual who can reveal the original user. Privacy information, resulting in property security risks to the original users, or waste of business service resources.

发明内容SUMMARY OF THE INVENTION

本发明要解决的技术问题是提供一种验证用户通信号码有效性的方法、装置及系统,用以解决商家在不知道用户通信号码状态的情况下,为用户提供服务,存在安全风险及浪费服务资源的问题。The technical problem to be solved by the present invention is to provide a method, a device and a system for verifying the validity of a user's communication number, so as to solve the problem of security risks and waste of services when merchants provide services to users without knowing the state of the user's communication number. resource issues.

为了解决上述技术问题,本发明实施例提供一种验证用户通信号码有效性的方法,应用于为待验证用户通信号码所属用户提供服务的商家平台,包括:In order to solve the above technical problems, an embodiment of the present invention provides a method for verifying the validity of a user's communication number, which is applied to a merchant platform that provides services for the user to which the user's communication number to be verified belongs, including:

根据待验证用户通信号码,判断所述待验证用户通信号码所属的通信运营平台;According to the communication number of the user to be verified, determine the communication operation platform to which the communication number of the user to be verified belongs;

向所述通信运营平台提供的查询接口发送查询信息,从所述通信运营平台获得所述待验证用户通信号码当前的状态信息;Send query information to the query interface provided by the communication operation platform, and obtain the current status information of the communication number of the user to be verified from the communication operation platform;

根据所述通信运营平台返回的所述状态信息,判断为验证用户通信号码提供服务是否有效。According to the state information returned by the communication operation platform, it is determined whether the verification of the user's communication number is valid or not.

进一步地,所述根据待验证用户通信号码,判断所述待验证用户通信号码所属的通信运营平台的步骤包括:Further, according to the communication number of the user to be verified, the step of judging the communication operation platform to which the communication number of the user to be verified belongs includes:

根据待验证用户通信号码,获取所述待验证用户通信号码的通信运营商标识信息位;According to the communication number of the user to be verified, obtain the communication operator identification information bit of the communication number of the user to be verified;

根据所述通信运营商标识信息位,判断所述待验证用户通信号码所属的通信运营平台。According to the identification information bit of the communication operator, the communication operation platform to which the communication number of the user to be verified belongs is determined.

进一步地,所述根据所述通信运营平台返回的所述状态信息,判断为验证用户通信号码提供服务是否有效的步骤为:Further, according to the state information returned by the communication operation platform, the step of judging whether the service provided by the user communication number is valid is:

若所述状态信息表明所述待验证用户通信号码为正常使用状态,则判断得到为所述验证用户通信号码提供服务有效的结果;If the state information indicates that the communication number of the user to be verified is in a normal use state, it is determined that the service provided for the communication number of the verified user is valid;

若所述状态信息表明所述待验证用户通信号码为停止使用状态或空号状态,则判断得到为所述验证用户通信号码提供服务无效的结果。If the state information indicates that the communication number of the user to be verified is in the out-of-use state or the empty number state, it is determined that the service provided for the communication number of the verified user is invalid.

进一步地,所述根据所述通信运营平台返回的所述状态信息,判断为验证用户通信号码提供服务是否有效的步骤具体为:Further, according to the state information returned by the communication operation platform, the step of judging whether the service provided by the user's communication number is valid is as follows:

若所述状态信息表明所述待验证用户通信号码为二次放号状态,则获取所述状态信息中包含的所述待验证用户通信号码的最近一次状态变更时间;If the status information indicates that the communication number of the user to be verified is in a secondary number allocation status, obtain the latest status change time of the communication number of the user to be verified contained in the status information;

获取商家平台上存储的所述待验证用户通信号码的注册时间;Obtain the registration time of the communication number of the user to be verified stored on the merchant platform;

将所述最近一次状态变更时间与所述注册时间进行比较,若所述注册时间早于所述最近一次状态变更时间,则判断得到为所述验证用户通信号码提供服务无效的结果;否则,判断得到为所述验证用户通信号码提供服务有效的结果。Comparing the last state change time with the registration time, if the registration time is earlier than the last state change time, it is judged that the service provided for the verification user communication number is invalid; otherwise, it is judged that A result is obtained that is valid for providing the service for the verification user communication number.

进一步地,所述根据所述通信运营平台返回的所述状态信息,判断为验证用户通信号码提供服务是否有效的步骤为:Further, according to the state information returned by the communication operation platform, the step of judging whether the service provided by the user communication number is valid is:

若所述状态信息表明所述待验证用户通信号码为携号转网状态,则根据所述状态信息中包含的转出方通信运营平台信息,在转出方通信运营平台上获取所述待验证用户通信号码当前的转出状态信息;If the status information indicates that the communication number of the user to be verified is in a portability state, then according to the information of the communication operation platform of the transfer-out party included in the status information, the communication operation platform of the transfer-out party is obtained on the communication operation platform of the transfer-out party. Current outgoing status information of the user's communication number;

若所述转出状态信息表明所述待验证用户通信号码为正常使用状态,则判断得到为所述验证用户通信号码提供服务有效的结果;If the transfer-out status information indicates that the communication number of the user to be verified is in a normal use state, it is judged that the service provided for the communication number of the verification user is valid;

若所述转出状态信息表明所述待验证用户通信号码为停止使用状态或空号状态,则判断得到为所述验证用户通信号码提供服务无效的结果;If the transfer-out status information indicates that the communication number of the user to be verified is in an out-of-use state or an empty number state, it is determined that the service provided for the communication number of the verified user is invalid;

若所述转出状态信息中包含的所述待验证用户通信号码为二次放号状态,则将所述转出状态信息中包含的所述待验证用户通信号码的最近一次状态变更时间与所述待验证用户通信号码在商家平台上的注册时间进行比较,若所述注册时间早于所述最近一次状态变更时间,则判断得到为所述验证用户通信号码提供服务无效的结果;否则,判断得到为所述验证用户通信号码提供服务有效的结果。If the communication number of the user to be verified contained in the transfer-out status information is in the state of secondary number allocation, compare the latest status change time of the communication number of the user to be verified contained in the transfer-out status information with the The registration time of the communication number of the user to be verified on the merchant platform is compared, and if the registration time is earlier than the time of the last state change, it is judged that the service provided for the communication number of the user to be verified is invalid; otherwise, it is judged that A result is obtained that is valid for providing the service for the verification user communication number.

本发明实施例提供一种验证用户通信号码有效性的装置,应用于为待验证用户通信号码所属用户提供服务的商家平台,包括:An embodiment of the present invention provides a device for verifying the validity of a user's communication number, which is applied to a merchant platform that provides services for users to which the user's communication number to be verified belongs, including:

通信运营平台判断模块,用于根据待验证用户通信号码,判断所述待验证用户通信号码所属的通信运营平台;a communication operation platform judgment module, configured to judge the communication operation platform to which the communication number of the user to be verified belongs according to the communication number of the user to be verified;

状态信息获取模块,用于向所述通信运营平台提供的查询接口发送查询信息,从所述通信运营平台获得所述待验证用户通信号码当前的状态信息;a status information acquisition module, configured to send query information to the query interface provided by the communication operation platform, and obtain the current status information of the communication number of the user to be verified from the communication operation platform;

有效性验证模块,用于根据所述通信运营平台返回的所述状态信息,判断为验证用户通信号码提供服务是否有效。The validity verification module is configured to determine whether the verification of the user's communication number to provide the service is valid according to the status information returned by the communication operation platform.

进一步地,所述通信运营平台判断模块包括:Further, the communication operation platform judgment module includes:

标识信息获取单元,用于根据待验证用户通信号码,获取所述待验证用户通信号码的通信运营商标识信息位;an identification information obtaining unit, configured to obtain the communication operator identification information bit of the communication number of the user to be verified according to the communication number of the user to be verified;

通信运营平台判断单元,用于根据所述通信运营商标识信息位,判断所述待验证用户通信号码所属的通信运营平台。The communication operation platform judgment unit is used for judging the communication operation platform to which the communication number of the user to be verified belongs according to the identification information bit of the communication operator.

进一步地,所述有效性验证模块具体为:Further, the validity verification module is specifically:

若所述状态信息表明所述待验证用户通信号码为正常使用状态,则判断得到为所述验证用户通信号码提供服务有效的结果;If the state information indicates that the communication number of the user to be verified is in a normal use state, it is determined that the service provided for the communication number of the verified user is valid;

若所述状态信息表明所述待验证用户通信号码为停止使用状态或空号状态,则判断得到为所述验证用户通信号码提供服务无效的结果。If the state information indicates that the communication number of the user to be verified is in the out-of-use state or the empty number state, it is determined that the service provided for the communication number of the verified user is invalid.

进一步地,所述有效性验证模块具体为:Further, the validity verification module is specifically:

若所述状态信息表明所述待验证用户通信号码为二次放号状态,则获取所述状态信息中包含所述待验证用户通信号码的最近一次状态变更时间;If the status information indicates that the communication number of the user to be verified is in a secondary number allocation status, acquiring the latest status change time that includes the communication number of the user to be verified in the status information;

获取商家平台上存储的所述待验证用户通信号码的注册时间;Obtain the registration time of the communication number of the user to be verified stored on the merchant platform;

将所述最近一次状态变更时间与所述注册时间进行比较,若所述注册时间早于所述最近一次状态变更时间,则判断得到为所述验证用户通信号码提供服务无效的结果;否则,判断得到为所述验证用户通信号码提供服务有效的结果。Comparing the last state change time with the registration time, if the registration time is earlier than the last state change time, it is judged that the service provided for the verification user communication number is invalid; otherwise, it is judged that A result is obtained that is valid for providing the service for the verification user communication number.

进一步地,所述有效性验证模块具体为:Further, the validity verification module is specifically:

若所述状态信息表明所述待验证用户通信号码为携号转网状态,则根据所述状态信息中包含的转出方通信运营平台信息,在转出方通信运营平台上获取所述待验证用户通信号码当前的转出状态信息;If the status information indicates that the communication number of the user to be verified is in a portability state, then according to the information of the communication operation platform of the transfer-out party included in the status information, the communication operation platform of the transfer-out party is obtained on the communication operation platform of the transfer-out party. Current outgoing status information of the user's communication number;

若所述转出状态信息表明所述待验证用户通信号码为正常使用状态,则判断得到为所述验证用户通信号码提供服务有效的结果;If the transfer-out status information indicates that the communication number of the user to be verified is in a normal use state, it is judged that the service provided for the communication number of the verification user is valid;

若所述转出状态信息表明所述待验证用户通信号码为停止使用状态或空号状态,则判断得到为所述验证用户通信号码提供服务无效的结果;If the transfer-out status information indicates that the communication number of the user to be verified is in an out-of-use state or an empty number state, it is determined that the service provided for the communication number of the verified user is invalid;

若所述转出状态信息中包含的所述待验证用户通信号码为二次放号状态,则将所述转出状态信息中包含的所述待验证用户通信号码的最近一次状态变更时间与所述待验证用户通信号码在商家平台上的注册时间进行比较,若所述注册时间早于所述最近一次状态变更时间,则判断得到为所述验证用户通信号码提供服务无效的结果;否则,判断得到为所述验证用户通信号码提供服务有效的结果。If the communication number of the user to be verified contained in the transfer-out status information is in the state of secondary number allocation, compare the latest status change time of the communication number of the user to be verified contained in the transfer-out status information with the The registration time of the communication number of the user to be verified on the merchant platform is compared, and if the registration time is earlier than the time of the last state change, it is judged that the service provided for the communication number of the user to be verified is invalid; otherwise, it is judged that A result is obtained that is valid for providing the service for the verification user communication number.

本发明实施例提供一种验证用户通信号码有效性的方法,应用于待验证用户通信号码所属的通信运营平台,包括:An embodiment of the present invention provides a method for verifying the validity of a user's communication number, which is applied to a communication operation platform to which the user's communication number to be verified belongs, including:

接收为待验证用户通信号码所属用户提供服务的商家平台发送的查询信息;Receive the query information sent by the merchant platform that provides services for the user to which the communication number of the user to be verified belongs;

根据所述查询信息查找所述待验证用户通信号码当前的状态信息;Find the current status information of the communication number of the user to be verified according to the query information;

将所述状态信息发送至所述商家平台。Sending the status information to the merchant platform.

进一步地,所述根据所述查询信息查询所述待验证用户通信号码当前的状态信息的步骤具体为:Further, the step of querying the current status information of the communication number of the user to be verified according to the query information is specifically:

根据所述查询信息,在通信号码状态表中查找所述待验证用户通信号码对应的状态信息;According to the query information, look up the status information corresponding to the communication number of the user to be verified in the communication number status table;

若所述通信号码状态表中有所述待验证用户通信号码的记录,则直接获取所述待验证用户通信号码对应的状态信息;If there is a record of the communication number of the user to be verified in the communication number status table, directly obtain the status information corresponding to the communication number of the user to be verified;

若所述通信号码状态表中没有所述待验证通信号码的记录,则生成所述待验证通信号码对应的表明所述待验证用户通信号码为空号状态的状态信息,并将所述待验证用户通信号码的状态更新到所述通信号码状态表中;其中,If there is no record of the communication number to be verified in the communication number status table, generate status information corresponding to the communication number to be verified, indicating that the communication number of the user to be verified is empty, and record the communication number to be verified. The status of the user's communication number is updated to the communication number status table; wherein,

所述通信号码状态表中包括:通信号码、所述通信号码对应的状态信息以及所述通信号码最近一次状态变更时间。The communication number status table includes: the communication number, the status information corresponding to the communication number, and the latest state change time of the communication number.

进一步地,若所述通信号码状态表中有所述待验证用户通信号码的记录,则直接获取所述待验证用户通信号码对应的状态信息的步骤为:Further, if there is a record of the communication number of the user to be verified in the communication number status table, the step of directly acquiring the status information corresponding to the communication number of the user to be verified is:

对所述待验证用户通信号码的状态信息进行判断;Judging the status information of the communication number of the user to be verified;

若所述状态信息为二次放号状态,则获取所述待验证用户通信号码的最近一次状态变更时间,所述二次放号状态和所述最近一次状态变更时间构成所述待验证通信号码的状态信息;If the status information is the status of the second number allocation, obtain the latest status change time of the communication number of the user to be verified, and the second status and the latest status change time constitute the communication number to be verified status information;

若所述状态信息为携号转网状态,则在携号转网转出方信息表中获取所述待验证用户通信号码的转出方通信运营平台信息,所述携号转网状态与所述转出方通信运营平台信息构成所述待验证通信号码的状态信息;其中,If the state information is the number portability transfer state, obtain the information of the transfer party's communication operation platform of the communication number of the user to be verified in the number portability transfer party information table. The number portability state is the same as that of the transfer party. The information of the communication operation platform of the transfer-out party constitutes the status information of the communication number to be verified; wherein,

所述携号转网转出方信息表中包括:通信号码、与所述通信号码对应的转出方通信运营平台信息以及所述通信号码的转出时间。The number portability transfer-out party information table includes: a communication number, the communication operation platform information of the transfer-out party corresponding to the communication number, and the transfer-out time of the communication number.

进一步地,所述方法还包括:Further, the method also includes:

对通信运营平台上的所有通信号码的状态信息进行实时监测;Real-time monitoring of the status information of all communication numbers on the communication operation platform;

当监测到有第一通信号码的状态信息变更时,生成所述第一通信号码的最新状态信息;When monitoring that there is a change in the state information of the first communication number, generating the latest state information of the first communication number;

将所述第一通信号码的最新状态信息存储到通信号码状态表中。The latest state information of the first communication number is stored in the communication number state table.

进一步地,所述将所述通信号码的最新状态信息存储到通信号码状态表中的步骤包括:Further, the step of storing the latest state information of the communication number in the communication number state table includes:

检测通信号码状态表中是否存在所述第一通信号码的记录;Detecting whether there is a record of the first communication number in the communication number status table;

若所述通信号码状态表中存在所述第一通信号码的记录,则根据所述最新状态信息更新所述第一通信号码的状态信息;If there is a record of the first communication number in the communication number status table, update the status information of the first communication number according to the latest status information;

若所述通信号码状态表中不存在所述第一通信号码的记录,则将所述第一通信号码以及所述第一通信号码对应的最新状态信息存储到所述通信号码状态表中。If there is no record of the first communication number in the communication number status table, the first communication number and the latest status information corresponding to the first communication number are stored in the communication number status table.

进一步地,当所述最新状态信息表明所述第一通信号码为携号转网时,所述方法还包括:Further, when the latest state information indicates that the first communication number is a number portability transfer network, the method further includes:

获取所述第一通信号码的转出方通信运营平台信息以及转出时间;Obtain the information of the communication operation platform of the transfer-out party and the transfer-out time of the first communication number;

将所述转出方通信运营平台信息以及转出时间存储到携号转网转出方信息表中。The information of the communication operation platform of the transfer-out party and the transfer-out time are stored in the information table of the transfer-out party of the number portability transfer network.

本发明实施例提供一种验证用户通信号码有效性的装置,应用于待验证用户通信号码所属的通信运营平台,包括:An embodiment of the present invention provides a device for verifying the validity of a user's communication number, which is applied to a communication operation platform to which the user's communication number to be verified belongs, including:

接收模块,用于接收为待验证用户通信号码所属用户提供服务的商家平台发送的查询信息;The receiving module is used to receive the query information sent by the merchant platform that provides services for the user to which the communication number of the user to be verified belongs;

查找模块,用于根据所述查询信息查找所述待验证用户通信号码当前的状态信息;a search module, configured to search the current state information of the communication number of the user to be verified according to the query information;

发送模块,用于将所述状态信息发送至所述商家平台。A sending module, configured to send the status information to the merchant platform.

进一步地,所述装置还包括:Further, the device also includes:

监测模块,用于对通信运营平台上的所有通信号码的状态信息进行实时监测;The monitoring module is used to monitor the status information of all communication numbers on the communication operation platform in real time;

状态信息生成模块,用于当监测到有第一通信号码的状态信息变更时,生成所述第一通信号码的最新状态信息;a status information generation module, configured to generate the latest status information of the first communication number when monitoring the status information of the first communication number to change;

第一存储模块,用于将所述第一通信号码的最新状态信息存储到通信号码状态表中。The first storage module is configured to store the latest state information of the first communication number in the communication number state table.

进一步地,当所述最新状态信息表明所述第一通信号码为携号转网时,所述装置还包括:Further, when the latest state information indicates that the first communication number is a port number transfer network, the device further includes:

第一获取模块,用于获取所述第一通信号码的转出方通信运营平台信息以及转出时间;a first obtaining module, configured to obtain the information of the communication operation platform of the transfer-out party and the transfer-out time of the first communication number;

第二存储模块,用于将所述转出方通信运营平台信息以及转出时间存储到携号转网转出方信息表中。The second storage module is configured to store the information of the communication operation platform of the transfer-out party and the transfer-out time in the information table of the transfer-out party of the number portability network.

本发明实施例提供一种验证用户通信号码有效性的系统,包括上述的验证用户通信号码有效性的装置。An embodiment of the present invention provides a system for verifying the validity of a user's communication number, including the above-mentioned device for verifying the validity of a user's communication number.

本发明的有益效果是:The beneficial effects of the present invention are:

上述方案,商家在为用户提供服务前,先判断用户通信号码是否处于可为其提供服务的有效状态,只有在有效状态时才为用户提供服务,此种方式,避免了商家直接向用户发起验证对用户造成打扰,有效提升了用户对商家提供的产品/业务的使用体验。In the above scheme, before providing services to users, merchants first determine whether the user's communication number is in a valid state that can provide services for them, and only provide services to users when they are in a valid state. This method prevents merchants from directly initiating verification to users. Disturbing users, effectively improving users' experience of using products/services provided by merchants.

附图说明Description of drawings

图1表示本发明实施例一的所述验证用户通信号码有效性的方法的总体流程图;1 shows an overall flow chart of the method for verifying the validity of a user communication number according to Embodiment 1 of the present invention;

图2表示本发明实施例一的所述验证用户通信号码有效性的装置的模块示意图;2 is a schematic block diagram of the apparatus for verifying the validity of a user communication number according to Embodiment 1 of the present invention;

图3表示本发明实施例二的所述验证用户通信号码有效性的方法的总体流程图;Fig. 3 shows the overall flow chart of the method for verifying the validity of the user's communication number according to the second embodiment of the present invention;

图4表示本发明实施例二的所述验证用户通信号码有效性的装置的模块示意图;4 is a schematic block diagram of the apparatus for verifying the validity of a user communication number according to Embodiment 2 of the present invention;

图5表示本发明实施例的验证用户通信号码有效性的系统的详细流程图。FIG. 5 shows a detailed flow chart of a system for verifying the validity of a user's communication number according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图及具体实施例对本发明进行详细描述。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

本发明针对商家在不知道用户通信号码状态的情况下,为用户提供服务,存在安全风险及浪费服务资源的问题,如图1所示,本发明实施例提供一种验证用户通信号码有效性的方法,应用于为待验证用户通信号码所属用户提供服务的商家平台,包括:The present invention aims at the problem of security risks and waste of service resources when merchants provide services for users without knowing the status of user communication numbers. The method is applied to a merchant platform that provides services for users to which the communication number of the user to be verified belongs, including:

步骤101,根据待验证用户通信号码,判断所述待验证用户通信号码所属的通信运营平台;Step 101, according to the communication number of the user to be verified, determine the communication operation platform to which the communication number of the user to be verified belongs;

步骤102,向所述通信运营平台提供的查询接口发送查询信息,从所述通信运营平台获得所述待验证用户通信号码当前的状态信息;Step 102: Send query information to the query interface provided by the communication operation platform, and obtain the current status information of the communication number of the user to be verified from the communication operation platform;

步骤103,根据所述通信运营平台返回的所述状态信息,判断为验证用户通信号码提供服务是否有效。Step 103: According to the status information returned by the communication operation platform, it is determined whether the verification service provided by the user's communication number is valid.

上述方案,商家在为用户提供服务前,先判断用户通信号码是否处于可为其提供服务的有效状态,只有在有效状态时才为用户提供服务,此种方式,避免了商家直接向用户发起验证对用户造成打扰,有效提升了用户对商家提供的产品/业务的使用体验。In the above scheme, before providing services to users, merchants first determine whether the user's communication number is in a valid state that can provide services for them, and only provide services to users when they are in a valid state. This method prevents merchants from directly initiating verification to users. Disturbing users, effectively improving users' experience of using products/services provided by merchants.

应当说明的是,本发明中,商家(也就上面所述的商家平台)一般将个人消费者定位为主要服务对象,其提供的互联网产品或服务需要以用户通信号码作为主要用户联络方式,此类商家举例如下:支付宝、财付通、京东商城、各大银行的手机银行、保险公司(中国平安、中国人寿、泰康人寿等)、大众点评网、携程旅行网、去哪儿网、美团网等;商家在进行用户通信号码有效性验证后,只有验证为有效的通信号码,此商家才会通过此通信号码向对应的用户提供服务,比如:京东商城为注册用户提供推送服务,推送商城内新推出的活动以及新上架的产品给注册用户,使得注册用户随时了解商城的动态;保险公司采集用户的使用体验,根据用户的使用体验,改进其服务质量等。It should be noted that, in the present invention, merchants (that is, the merchant platforms mentioned above) generally position individual consumers as the main service objects, and the Internet products or services provided by them need to use the user's communication number as the main user's contact method. Examples of such merchants are as follows: Alipay, Tenpay, JD.com, mobile banking of major banks, insurance companies (Ping An, China Life, Taikang Life, etc.), Dianping.com, Ctrip.com, Qunar.com, Meituan.com etc. After the merchant has verified the validity of the user's communication number, the merchant will provide services to the corresponding user through the communication number only if it is verified as a valid communication number. Newly launched activities and newly launched products are given to registered users, so that registered users can keep abreast of the mall's dynamics; insurance companies collect users' experience, and improve their service quality according to users' experience.

本发明实施例中,所述步骤101的一种实现方式为:In the embodiment of the present invention, an implementation manner of the step 101 is:

根据待验证用户通信号码,获取所述待验证用户通信号码的通信运营商标识信息位;According to the communication number of the user to be verified, obtain the communication operator identification information bit of the communication number of the user to be verified;

根据所述通信运营商标识信息位,判断所述待验证用户通信号码所属的通信运营平台。According to the identification information bit of the communication operator, the communication operation platform to which the communication number of the user to be verified belongs is determined.

应当说明的是,只有确定了用户通信号码所对应的通信运营平台,才能在对应的通信运营平台上获取其对应的状态信息。It should be noted that only after the communication operation platform corresponding to the user's communication number is determined, the corresponding status information can be obtained on the corresponding communication operation platform.

上述实施例中,先获取用户通信号码的运营商标识信息位,然后查找该标识信息位对应的通信运营平台,以所有通信号码均属于三大通信运营平台(中国电信、中国移动和中国联通)为例进行说明,因现有的通信号码号段均由工信部分配,所以在进行用户通信号码的通信运营平台匹配时,只需提取用户通信号码的通信号码号段,然后再判断提取的通信号码号段所归属的通信运营平台即可。In the above-described embodiment, first obtain the operator identification information bit of the user's communication number, then look up the communication operation platform corresponding to this identification information bit, and all the communication numbers belong to the three major communication operation platforms (China Telecom, China Mobile and China Unicom) As an example to illustrate, because the existing communication number segments are all allocated by the Ministry of Industry and Information Technology, when matching the communication operation platform of the user's communication number, it is only necessary to extract the communication number segment of the user's communication number, and then determine the extracted communication number. The communication operation platform to which the number segment belongs is sufficient.

具体确定通信号码号段所归属的通信运营平台的实现方式为:通过提取的通信号码号段与通信号码号段表进行匹配,得到该通信号码号段所属的通信运营平台,所述通信号码号段表具体如表1所示:The specific way of determining the communication operation platform to which the communication number segment belongs is as follows: by matching the extracted communication number segment with the communication number segment table, the communication operation platform to which the communication number segment belongs is obtained, and the communication number segment is obtained by matching the extracted communication number segment with the communication number segment table. The segment table is as shown in Table 1:

通信运营平台Communication operation platform 通信号码号段communication number segment CMCM 138138 CUCU 186186 CUCU 130130 CTCT 133133 CTCT 153153 CMCM 158158

表1通信号码号段表Table 1 Communication number segment table

其中,CT代表中国电信,CU代表中国联通,CM代表中国移动,通过通信号码的前3个号段便可确定所述通信号码所归属的通信运营平台。Among them, CT stands for China Telecom, CU stands for China Unicom, and CM stands for China Mobile. The communication operation platform to which the communication number belongs can be determined through the first three segments of the communication number.

在得到待验证用户通信号码的通信运营平台后,便可向该通信运营平台提供的查询接口发送查询信息,应当说明的是,在本发明中,预定的中国移动、中国联通、中国电信提供的通信号码状态查询接口分别可设计为:After obtaining the communication operation platform of the communication number of the user to be verified, the inquiry information can be sent to the inquiry interface provided by the communication operation platform. It should be noted that, in the present invention, the predetermined information provided by China Mobile, China Unicom and China Telecom The communication number status query interface can be designed as:

●http://xxxx.xxx.xxx.xxx:8080/CMCC/getNoCurState.wsdl●http://xxxx.xxx.xxx.xxx:8080/CMCC/getNoCurState.wsdl

●http://xxxx.xxx.xxx.xxx:8080/CU/getNoCurState.wsdl●http://xxxx.xxx.xxx.xxx:8080/CU/getNoCurState.wsdl

●http://xxxx.xxx.xxx.xxx:8080/CT/getNoCurState.wsdl●http://xxxx.xxx.xxx.xxx:8080/CT/getNoCurState.wsdl

通信运营平台根据所述查询信息查询该待验证用户通信号码的状态信息,应当说明的是,所述通信运营平台上存储有在其上注册的所有通信号码的状态,所述状态均存储在如表2所示的通信号码状态表中,应当说明的是,所述通信号码状态表中存储有通信号码、与每个通信号码对应的通信号码状态编码以及通信号码最近一次状态变更时间。The communication operation platform inquires about the status information of the communication number of the user to be verified according to the query information. It should be noted that the communication operation platform stores the status of all communication numbers registered on it, and the statuses are stored in such as In the communication number status table shown in Table 2, it should be noted that the communication number status table stores the communication number, the communication number status code corresponding to each communication number, and the latest status change time of the communication number.

表2通信号码状态表Table 2 Communication number status table

应当说明的是,将状态信息以状态编码表示,节省了进行表格存储时所占用的空间,对所述通信号码状态编码的具体描述如表3所示,本申请中主要记载的通信号码状态为正常使用状态、停止使用状态、二次放号状态、携号转网状态以及空号状态,应当说明的是,当通信号码进行了携号转网时,该通信运营平台上还需要记录该通信号码的转出方信息通信运营平台信息,具体携号转网转出方信息表中的记录信息如表4所示,所述携号转网转出方信息表中记载有携号转网的通信号码、所述通信号码的转出方通信运营平台信息以及所述通信号码的转出时间。It should be noted that the state information is represented by the state code, which saves the space occupied when the table is stored. The specific description of the state code of the communication number is shown in Table 3. The communication number state mainly recorded in this application is: It should be noted that when the communication number is ported and transferred to the network, the communication operation platform also needs to record the communication The information of the number porting party information communication operation platform, the specific record information in the number portability transfer party information table is shown in Table 4, and the number portability transfer party information table records the number portability transfer party information table. The communication number, the communication operation platform information of the transfer party of the communication number, and the transfer time of the communication number.

表3通信号码状态编码的具体描述Table 3 The specific description of the status code of the communication number

表4携号转网转出方信息表Table 4 Number portability transfer information table

通信运营平台在查找到待验证用户通信号码的状态信息后,将此状态信息反馈给商家平台,商家平台根据所述状态信息进行待验证用户通信号码有效性的判断,由上面所述,因通信号码可以有多种状态,因此本发明中,所述步骤103的具体实现方式为:After finding the status information of the communication number of the user to be verified, the communication operation platform feeds back the status information to the merchant platform, and the merchant platform judges the validity of the communication number of the user to be verified according to the status information. The number can have multiple states, so in the present invention, the specific implementation of the step 103 is as follows:

1)若所述状态信息表明所述待验证用户通信号码为正常使用状态,则判断得到为所述验证用户通信号码提供服务有效的结果;1) if the state information indicates that the communication number of the user to be verified is in a normal use state, then it is judged that the valid result of providing services for the communication number of the user to be verified is obtained;

2)若所述状态信息表明所述待验证用户通信号码为停止使用状态或空号状态,则判断得到为所述验证用户通信号码提供服务无效的结果;2) if the state information indicates that the communication number of the user to be verified is in the out of use state or the empty number state, then it is judged that the result of providing the service for the verification user communication number is invalid;

3)若所述状态信息表明所述待验证用户通信号码为二次放号状态,则获取所述状态信息中包含的所述待验证用户通信号码的最近一次状态变更时间;3) if the state information indicates that the communication number of the user to be verified is a secondary number allocation state, then obtain the latest state change time of the communication number of the user to be verified contained in the state information;

获取商家平台上存储的所述待验证用户通信号码的注册时间;Obtain the registration time of the communication number of the user to be verified stored on the merchant platform;

将所述最近一次状态变更时间与所述注册时间进行比较,若所述注册时间早于所述最近一次状态变更时间,则判断得到为所述验证用户通信号码提供服务无效的结果;否则,判断得到为所述验证用户通信号码提供服务有效的结果;Comparing the last state change time with the registration time, if the registration time is earlier than the last state change time, it is judged that the service provided for the verification user communication number is invalid; otherwise, it is judged that Obtain the result that the service is valid for the verification user communication number;

4)若所述状态信息表明所述待验证用户通信号码为携号转网状态,则根据所述状态信息中包含的转出方通信运营平台信息,在转出方通信运营平台上获取所述待验证用户通信号码当前的转出状态信息;4) If the state information indicates that the communication number of the user to be verified is in a portability state, then according to the information of the communication operation platform of the outgoing party included in the state information, obtain the communication operation platform of the outgoing party. Current outgoing status information of the communication number of the user to be verified;

若所述转出状态信息表明所述待验证用户通信号码为正常使用状态,则判断得到为所述验证用户通信号码提供服务有效的结果;If the transfer-out status information indicates that the communication number of the user to be verified is in a normal use state, it is judged that the service provided for the communication number of the verification user is valid;

若所述转出状态信息表明所述待验证用户通信号码为停止使用状态或空号状态,则判断得到为所述验证用户通信号码提供服务无效的结果;If the transfer-out status information indicates that the communication number of the user to be verified is in an out-of-use state or an empty number state, it is determined that the service provided for the communication number of the verified user is invalid;

若所述转出状态信息中包含的所述待验证用户通信号码为二次放号状态,则将所述转出状态信息中包含的所述待验证用户通信号码的最近一次状态变更时间与所述待验证用户通信号码在商家平台上的注册时间进行比较,若所述注册时间早于所述最近一次状态变更时间,则判断得到为所述验证用户通信号码提供服务无效的结果;否则,判断得到为所述验证用户通信号码提供服务有效的结果。If the communication number of the user to be verified contained in the transfer-out status information is in the state of secondary number allocation, compare the latest status change time of the communication number of the user to be verified contained in the transfer-out status information with the The registration time of the communication number of the user to be verified on the merchant platform is compared, and if the registration time is earlier than the time of the last state change, it is judged that the service provided for the communication number of the user to be verified is invalid; otherwise, it is judged that A result is obtained that is valid for providing the service for the verification user communication number.

应当说明的是,若状态信息表明待验证用户通信号码为正常使用状态、停止使用状态和空号状态,可以直接得到为待验证用户通信号码提供服务是否有效,在正常使用状态时,商家平台为用户通信号码所对应的用户提供服务,在停止使用状态和空号状态时,商家平台停止对用户通信号码对应的用户提供服务;但当待验证用户通信号码为二次放号状态时,商家平台不能直接得到为该待验证用户通信号码提供服务是否有效的判断结果,此时,需要获取待验证用户通信号码在商家平台的注册时间,然后将该注册时间与待验证用户通信号码的最近一次状态变更时间进行比较,如果该待验证用户通信号码注册商家平台服务在先,商家平台则停止对该用户通信号码提供服务;反之,说明该用户通信号码是在二次放号后才在商家平台注册的,商家平台则为该号码提供服务;而当待验证用户通信号码为携号转网状态时,由于不能在待验证用户通信号码原来的通信运营平台上获取其状态信息,此时需要商家平台根据反馈的包含有转出方通信运营平台信息的状态信息,发送查询请求信息给转出方通信运营平台,使的转出方通信运营平台反馈该待验证用户通信号码的状态信息,商家平台在接收到该状态信息后在进行该待验证用户通信号码提供服务是否有效的判断,此处的判断过程与上面相同,在此不再赘述。It should be noted that, if the status information indicates that the communication number of the user to be verified is in normal use, out of use and empty, it can be directly obtained whether it is effective to provide services for the communication number of the user to be verified. The user corresponding to the user's communication number provides services. When the user's communication number is stopped and the number is empty, the merchant's platform stops providing services to the user corresponding to the user's communication number; but when the user's communication number to be verified is in the second-order status, the merchant's platform stops providing services. It is not possible to directly obtain the judgment result of whether the service for the communication number of the user to be verified is effective. At this time, it is necessary to obtain the registration time of the communication number of the user to be verified on the merchant platform, and then use the registration time with the latest status of the communication number of the user to be verified. Compare the change time. If the communication number of the user to be verified is registered with the merchant platform first, the merchant platform will stop providing services to the user’s communication number; otherwise, it means that the user’s communication number is registered on the merchant platform after the second number is released. , the merchant platform provides services for the number; and when the communication number of the user to be verified is in the state of number portability, since the status information cannot be obtained on the original communication operation platform of the user communication number to be verified, the merchant platform is required at this time. According to the feedback status information containing the information of the communication operation platform of the transfer-out party, send the query request information to the communication operation platform of the transfer-out party, so that the communication operation platform of the transfer-out party can feed back the status information of the communication number of the user to be verified, and the merchant platform will After receiving the status information, it is judged whether the service provided by the communication number of the user to be verified is valid. The judgment process here is the same as the above, and will not be repeated here.

上述方案,商家平台通过在进行用户服务时,先进行用户通信号码的验证,将传统通过人工外呼或短信验证码判断通信号码有效性的方式分解为通信号码状态查询和通信号码有效性验证两个步骤;同时,本发明中提出5种通信号码状态,特别是对二次放号、携号转网两种特殊情况作了更细化的处理,有利于为商家平台判断通信号码有效性提供更准确信息;本发明实现了商家平台可以实时获取用户通信号码最新状态信息,可方便、准确的验证用户通信号码的有效性,既可以避免自身服务资源浪费,又可以规避服务安全风险。In the above solution, the merchant platform first performs the verification of the user's communication number when performing user services, and decomposes the traditional method of judging the validity of the communication number through manual outbound calls or SMS verification codes into two parts: communication number status query and communication number validity verification. At the same time, five kinds of communication number states are proposed in the present invention, especially the two special cases of secondary number allocation and number portability transfer to the network have been processed in a more detailed manner, which is beneficial to provide the merchant platform for judging the validity of the communication number. More accurate information; the present invention realizes that the merchant platform can obtain the latest status information of the user's communication number in real time, and can conveniently and accurately verify the validity of the user's communication number, which can not only avoid the waste of its own service resources, but also avoid service security risks.

对应与上述方法,如图2所示,本发明实施例提供一种验证用户通信号码有效性的装置,应用于为待验证用户通信号码所属用户提供服务的商家平台,包括:Corresponding to the above method, as shown in FIG. 2, an embodiment of the present invention provides a device for verifying the validity of a user's communication number, which is applied to a merchant platform that provides services for the user to which the user's communication number belongs, including:

通信运营平台判断模块110,用于根据待验证用户通信号码,判断所述待验证用户通信号码所属的通信运营平台;The communication operation platform judgment module 110 is configured to judge the communication operation platform to which the communication number of the user to be verified belongs according to the communication number of the user to be verified;

状态信息获取模块120,用于向所述通信运营平台提供的查询接口发送查询信息,从所述通信运营平台获得所述待验证用户通信号码当前的状态信息;a status information acquisition module 120, configured to send query information to the query interface provided by the communication operation platform, and obtain the current status information of the communication number of the user to be verified from the communication operation platform;

有效性验证模块130,用于根据所述通信运营平台返回的所述状态信息,判断为验证用户通信号码提供服务是否有效。The validity verification module 130 is configured to determine, according to the status information returned by the communication operation platform, whether the verification of the user's communication number to provide the service is valid.

可选地,所述通信运营平台判断模块110包括:Optionally, the communication operation platform judgment module 110 includes:

标识信息获取单元,用于根据待验证用户通信号码,获取所述待验证用户通信号码的通信运营商标识信息位;an identification information obtaining unit, configured to obtain the communication operator identification information bit of the communication number of the user to be verified according to the communication number of the user to be verified;

通信运营平台判断单元,用于根据所述通信运营商标识信息位,判断所述待验证用户通信号码所属的通信运营平台。The communication operation platform judgment unit is used for judging the communication operation platform to which the communication number of the user to be verified belongs according to the identification information bit of the communication operator.

具体地,所述有效性验证模块130具体为:Specifically, the validity verification module 130 is specifically:

若所述状态信息表明所述待验证用户通信号码为正常使用状态,则判断得到为所述验证用户通信号码提供服务有效的结果;If the state information indicates that the communication number of the user to be verified is in a normal use state, it is determined that the service provided for the communication number of the verified user is valid;

若所述状态信息表明所述待验证用户通信号码为停止使用状态或空号状态,则判断得到为所述验证用户通信号码提供服务无效的结果。If the state information indicates that the communication number of the user to be verified is in the out-of-use state or the empty number state, it is determined that the service provided for the communication number of the verified user is invalid.

具体地,所述有效性验证模块130具体为:Specifically, the validity verification module 130 is specifically:

若所述状态信息表明所述待验证用户通信号码为二次放号状态,则获取所述状态信息中包含所述待验证用户通信号码的最近一次状态变更时间;If the status information indicates that the communication number of the user to be verified is in a secondary number allocation status, acquiring the latest status change time that includes the communication number of the user to be verified in the status information;

获取商家平台上存储的所述待验证用户通信号码的注册时间;Obtain the registration time of the communication number of the user to be verified stored on the merchant platform;

将所述最近一次状态变更时间与所述注册时间进行比较,若所述注册时间早于所述最近一次状态变更时间,则判断得到为所述验证用户通信号码提供服务无效的结果;否则,判断得到为所述验证用户通信号码提供服务有效的结果。Comparing the last state change time with the registration time, if the registration time is earlier than the last state change time, it is judged that the service provided for the verification user communication number is invalid; otherwise, it is judged that A result is obtained that is valid for providing the service for the verification user communication number.

具体地,所述有效性验证模块130具体为:Specifically, the validity verification module 130 is specifically:

若所述状态信息表明所述待验证用户通信号码为携号转网状态,则根据所述状态信息中包含的转出方通信运营平台信息,在转出方通信运营平台上获取所述待验证用户通信号码当前的转出状态信息;If the status information indicates that the communication number of the user to be verified is in a portability state, then according to the information of the communication operation platform of the transfer-out party included in the status information, the communication operation platform of the transfer-out party is obtained on the communication operation platform of the transfer-out party. Current outgoing status information of the user's communication number;

若所述转出状态信息表明所述待验证用户通信号码为正常使用状态,则判断得到为所述验证用户通信号码提供服务有效的结果;If the transfer-out status information indicates that the communication number of the user to be verified is in a normal use state, it is judged that the service provided for the communication number of the verification user is valid;

若所述转出状态信息表明所述待验证用户通信号码为停止使用状态或空号状态,则判断得到为所述验证用户通信号码提供服务无效的结果;If the transfer-out status information indicates that the communication number of the user to be verified is in an out-of-use state or an empty number state, it is determined that the service provided for the communication number of the verified user is invalid;

若所述转出状态信息中包含的所述待验证用户通信号码为二次放号状态,则将所述转出状态信息中包含的所述待验证用户通信号码的最近一次状态变更时间与所述待验证用户通信号码在商家平台上的注册时间进行比较,若所述注册时间早于所述最近一次状态变更时间,则判断得到为所述验证用户通信号码提供服务无效的结果;否则,判断得到为所述验证用户通信号码提供服务有效的结果。If the communication number of the user to be verified contained in the transfer-out status information is in the state of secondary number allocation, compare the latest status change time of the communication number of the user to be verified contained in the transfer-out status information with the The registration time of the communication number of the user to be verified on the merchant platform is compared, and if the registration time is earlier than the time of the last state change, it is judged that the service provided for the communication number of the user to be verified is invalid; otherwise, it is judged that A result is obtained that is valid for providing the service for the verification user communication number.

与商家平台上验证用户通信号码有效性的方法相对应,如图3所示,本发明实施例提供一种验证用户通信号码有效性的方法,应用于待验证用户通信号码所属的通信运营平台,包括:Corresponding to the method for verifying the validity of the user's communication number on the merchant platform, as shown in Figure 3, an embodiment of the present invention provides a method for verifying the validity of the user's communication number, which is applied to the communication operation platform to which the user's communication number to be verified belongs. include:

步骤201,接收为待验证用户通信号码所属用户提供服务的商家平台发送的查询信息;Step 201, receiving the query information sent by the merchant platform that provides services for the user to which the communication number of the user to be verified belongs;

步骤202,根据所述查询信息查找所述待验证用户通信号码当前的状态信息;Step 202, looking up the current status information of the communication number of the user to be verified according to the query information;

步骤203,将所述状态信息发送至所述商家平台。Step 203: Send the status information to the merchant platform.

通信运营平台通过接收商家平台发送的查询信息,然后依据该查询信息查到在自身的记录信息中查找到待验证用户通信号码的状态信息,并进行状态信息的反馈,以此保证了商家平台进行用户通信号码有效性验证的顺利实行。The communication operation platform receives the query information sent by the merchant platform, and then finds the status information of the communication number of the user to be verified in its own record information according to the query information, and feeds back the status information, thus ensuring the merchant platform to carry out The successful implementation of the validity verification of the user's communication number.

可选地,进一步地,所述步骤202的具体实现方式为:Optionally, further, the specific implementation manner of the step 202 is:

根据所述查询信息,在通信号码状态表(所述通信号码状态表如上所述)中查找所述待验证用户通信号码对应的状态信息;According to the query information, look up the status information corresponding to the communication number of the user to be verified in the communication number status table (the communication number status table is as described above);

若所述通信号码状态表中有所述待验证用户通信号码的记录,则直接获取所述待验证用户通信号码对应的状态信息;If there is a record of the communication number of the user to be verified in the communication number status table, directly obtain the status information corresponding to the communication number of the user to be verified;

若所述通信号码状态表中没有所述待验证通信号码的记录,则生成所述待验证通信号码对应的表明所述待验证用户通信号码为空号状态的状态信息,并将所述待验证用户通信号码的状态更新到所述通信号码状态表中。If there is no record of the communication number to be verified in the communication number status table, generate status information corresponding to the communication number to be verified, indicating that the communication number of the user to be verified is empty, and record the communication number to be verified. The status of the user's communication number is updated into the communication number status table.

由上面所述可知,本发明上述实施例中还提供了通信号码状态表的自动更新功能,因通信号码状态表中的【通信号码状态编码】列为0,1,2,3的记录都是在通信号码状态变更时主动写入生成的,唯有【通信号码状态编码】列为4的记录,是商家平台在为待验证用户通信号码请求通信号码最新状态时,如果在该通信号码状态表查不到该待验证用户通信号码,则该待验证用户通信号码的状态信息(该待验证用户通信号码、状态4、当前时间)被写入通信号码状态表中。As can be seen from the above, the above-mentioned embodiment of the present invention also provides the automatic update function of the communication number status table, because the records listed as 0, 1, 2, and 3 in the [communication number status code] in the communication number status table are all records. When the status of the communication number is changed, it is automatically written and generated. Only the record with the column of [Communication Number Status Code] as 4 is the record when the merchant platform requests the latest status of the communication number for the communication number of the user to be verified. If the communication number of the user to be verified cannot be found, the status information of the communication number of the user to be verified (the communication number of the user to be verified, status 4, current time) is written into the communication number status table.

针对于待验证用户通信号码为不同的状态时,获取的状态信息内容不同,本发明实施例中实现获取待验证用户通信号码对应的状态信息的方式具体如下:For when the communication numbers of the users to be verified are in different states, the acquired status information content is different, in this embodiment of the present invention, the method for acquiring the status information corresponding to the communication numbers of the users to be verified is as follows:

对所述待验证用户通信号码的状态信息进行判断;Judging the status information of the communication number of the user to be verified;

若所述状态信息为正常状态、停用状态和空号状态,则直接获取待验证用户通信号码的通信号码状态编码作为待验证用户通信号码的状态信息;If the state information is a normal state, a deactivated state and an empty number state, directly acquiring the communication number state code of the communication number of the user to be verified as the state information of the communication number of the user to be verified;

若所述状态信息为二次放号状态,则获取所述待验证用户通信号码的最近一次状态变更时间,所述二次放号状态和所述最近一次状态变更时间构成所述待验证通信号码的状态信息;If the status information is the status of the second number allocation, obtain the latest status change time of the communication number of the user to be verified, and the second status and the latest status change time constitute the communication number to be verified status information;

若所述状态信息为携号转网状态,则在携号转网转出方信息表(所述携号转网转出方信息表如上所述)中获取所述待验证用户通信号码的转出方通信运营平台信息,所述携号转网状态与所述转出方通信运营平台信息构成所述待验证通信号码的状态信息。If the state information is the number portability transfer state, obtain the transfer information of the communication number of the user to be verified in the number portability transfer party information table (the number portability transfer party information table is as described above) The outgoing party's communication operation platform information, the number porting state and the outgoing party's communication operation platform information constitute the state information of the communication number to be verified.

应当说明的是,通信运营商平台应对其拥有的所有通信号码进行实时状态的监控,以保证记录的通信号码的状态为最新状态,因此本发明实施例中,所述方法还包括:It should be noted that the communication operator platform should monitor the real-time status of all communication numbers it owns to ensure that the status of the recorded communication numbers is the latest state. Therefore, in this embodiment of the present invention, the method further includes:

对通信运营平台上的所有通信号码的状态信息进行实时监测;Real-time monitoring of the status information of all communication numbers on the communication operation platform;

当监测到有第一通信号码的状态信息变更时,生成所述第一通信号码的最新状态信息;When monitoring that there is a change in the state information of the first communication number, generating the latest state information of the first communication number;

将所述第一通信号码的最新状态信息存储到通信号码状态表中。The latest state information of the first communication number is stored in the communication number state table.

进一步地,所述将所述通信号码的最新状态信息存储到通信号码状态表中的步骤的具体实现方式为:Further, the specific implementation mode of the step of storing the latest state information of the communication number in the communication number state table is:

检测通信号码状态表中是否存在所述第一通信号码的记录;Detecting whether there is a record of the first communication number in the communication number status table;

若所述通信号码状态表中存在所述第一通信号码的记录,则根据所述最新状态信息更新所述第一通信号码的状态信息;If there is a record of the first communication number in the communication number status table, update the status information of the first communication number according to the latest status information;

若所述通信号码状态表中不存在所述第一通信号码的记录,则将所述第一通信号码以及所述第一通信号码对应的最新状态信息存储到所述通信号码状态表中。If there is no record of the first communication number in the communication number status table, the first communication number and the latest status information corresponding to the first communication number are stored in the communication number status table.

在监控得到通信号码为携号转网状态时,还应将该通信号码的转出方通信运营平台信息进行记录,以确保商家平台能获取得到通信号码的转出方运营平台信息,因此,本发明另一实施例中,所述方法还包括:When monitoring and getting the communication number to be ported to the network, the information of the communication operation platform of the sender of the communication number should also be recorded to ensure that the merchant platform can obtain the information of the operation platform of the sender of the communication number. Therefore, this In another embodiment of the invention, the method further includes:

获取所述第一通信号码的转出方通信运营平台信息以及转出时间;Obtain the information of the communication operation platform of the transfer-out party and the transfer-out time of the first communication number;

将所述转出方通信运营平台信息以及转出时间存储到携号转网转出方信息表中。The information of the communication operation platform of the transfer-out party and the transfer-out time are stored in the information table of the transfer-out party of the number portability transfer network.

对应与上述方法,如图4所示,本发明实施例提供一种验证用户通信号码有效性的装置,应用于待验证用户通信号码所属的通信运营平台,包括:Corresponding to the above method, as shown in FIG. 4 , an embodiment of the present invention provides a device for verifying the validity of a user's communication number, which is applied to a communication operation platform to which the user's communication number to be verified belongs, including:

接收模块210,用于接收为待验证用户通信号码所属用户提供服务的商家平台发送的查询信息;The receiving module 210 is configured to receive the query information sent by the merchant platform that provides services for the user to which the communication number of the user to be verified belongs;

查找模块220,用于根据所述查询信息查找所述待验证用户通信号码当前的状态信息;A search module 220, configured to search the current state information of the communication number of the user to be verified according to the query information;

发送模块230,用于将所述状态信息发送至所述商家平台。The sending module 230 is configured to send the status information to the merchant platform.

可选地,所述装置还包括:Optionally, the device further includes:

监测模块,用于对通信运营平台上的所有通信号码的状态信息进行实时监测;The monitoring module is used to monitor the status information of all communication numbers on the communication operation platform in real time;

状态信息生成模块,用于当监测到有第一通信号码的状态信息变更时,生成所述第一通信号码的最新状态信息;a status information generation module, configured to generate the latest status information of the first communication number when monitoring the status information of the first communication number to change;

第一存储模块,用于将所述第一通信号码的最新状态信息存储到通信号码状态表中。The first storage module is configured to store the latest state information of the first communication number in the communication number state table.

可选地,当所述最新状态信息表明所述第一通信号码为携号转网时,所述装置还包括:Optionally, when the latest status information indicates that the first communication number is a ported number, the device further includes:

第一获取模块,用于获取所述第一通信号码的转出方通信运营平台信息以及转出时间;a first obtaining module, configured to obtain the information of the communication operation platform of the transfer-out party and the transfer-out time of the first communication number;

第二存储模块,用于将所述转出方通信运营平台信息以及转出时间存储到携号转网转出方信息表中。The second storage module is configured to store the information of the communication operation platform of the transfer-out party and the transfer-out time in the information table of the transfer-out party of the number portability network.

本发明实施例提供一种验证用户通信号码有效性的系统,包括上述的验证用户通信号码有效性的装置。An embodiment of the present invention provides a system for verifying the validity of a user's communication number, including the above-mentioned device for verifying the validity of a user's communication number.

针对于上述系统,本发明在实际应用时,所述系统包括:商家平台上的验证用户通信号码有效性的装置和通信运营平台上的验证用户通信号码有效性的装置,其中,所述商家平台上的验证用户通信号码有效性的装置主要分为通信号码状态查询模块和通信号码有效性验证模块;所述通信运营平台上的验证用户通信号码有效性的装置主要分为:通信号码状态变更模块、通信号码状态存储模块和通信号码状态查询接口;本发明的所述系统实现验证用户通信号码有效性的详细流程如图5所示:For the above system, when the present invention is applied in practice, the system includes: a device for verifying the validity of a user's communication number on a merchant platform and a device for verifying the validity of a user's communication number on a communication operation platform, wherein the merchant platform The device for verifying the validity of the user's communication number is mainly divided into a communication number state query module and a communication number validity verification module; the device for verifying the validity of the user's communication number on the communication operation platform is mainly divided into: a communication number state change module , the communication number state storage module and the communication number state query interface; the detailed flow of the system implementation of the present invention for verifying the validity of the user's communication number is shown in Figure 5:

步骤1、通信运营平台发起通信号码状态变更,触发通信号码状态变更模块,生成5种不同通信号码状态;Step 1. The communication operation platform initiates a communication number state change, triggers the communication number state change module, and generates 5 different communication number states;

步骤2、通信号码状态存储模块将通信号码、通信号码状态、最近一次状态变更时间信息存储在通信号码状态表中;Step 2, the communication number state storage module stores the communication number, the communication number state, and the latest state change time information in the communication number state table;

步骤3、商家平台互联网产品或服务向个人消费者用户提供可通过通信号码访问的关键服务前,调用通信号码状态查询模块;Step 3. Before the Internet products or services of the merchant platform provide individual consumer users with key services that can be accessed through the communication number, call the communication number status query module;

步骤4、通信号码状态查询模块基于通信号码号段特征,检索通信号码号段表,确定通信号码归属的通信运营商;Step 4, the communication number status query module searches the communication number segment table based on the characteristics of the communication number segment, and determines the communication operator to which the communication number belongs;

步骤5、通信号码状态查询模块调用目标通信运营平台提供的通信号码状态查询接口;Step 5, the communication number status query module invokes the communication number status query interface provided by the target communication operation platform;

步骤6、通信号码状态查询接口在通信号码状态表中查找通信号码的最新状态和最近一次状态变更时间,如果查找不到,则返回4(空号);如果该通信号码为携号转网状态,也同时返回该通信号码携号转网转出方通信运营平台信息;Step 6, the communication number status query interface searches the latest status of the communication number and the latest state change time in the communication number status table, and returns 4 (empty number) if it cannot be found; if the communication number is in a ported state , and also returns the information of the communication operation platform of the communication number porting and transfer-out party;

步骤7、通信号码状态查询接口返回查到的通信号码状态等所有信息;Step 7. The communication number status query interface returns all information such as the found communication number status;

步骤8.1、通信号码有效性验证模块根据返回的通信号码状态进行判断,如果该号码状态为正常,商家平台则为该通信号码提供服务;Step 8.1, the communication number validity verification module judges according to the returned communication number status, if the number status is normal, the merchant platform provides services for the communication number;

步骤8.2、如果该号码状态为停用、空号,商家平台则停止为该通信号码提供服务;Step 8.2. If the number status is disabled or empty, the merchant platform will stop providing services for the communication number;

步骤8.3、如果该号码状态为二次放号,则需要比较最近一次状态变更时间和该通信号码注册商家平台的注册时间,如果该通信号码注册商家服务在先,商家平台停止对该通信号码提供服务;反之,说明该通信号码是在二次放号后才在商家注册的,商家平台则为该通信号码提供服务;Step 8.3. If the status of the number is a secondary number release, you need to compare the latest status change time and the registration time of the communication number registered with the merchant platform. If the communication number is registered with the merchant service first, the merchant platform will stop providing the communication number. On the contrary, it means that the communication number is registered with the merchant after the second number is released, and the merchant platform provides services for the communication number;

8.4如果该通信号码为携号转网,商家则根据一起返回的该通信号码携号转网转出方通信运营平台信息,重新确定该通信号码的归属通信运营平台,并重新发起同信号码状态查询服务(步骤5)。8.4 If the communication number is ported to the network, the merchant will re-determine the home communication operation platform of the communication number according to the returned communication operation platform information of the communication number ported to the network, and re-initiate the status of the same signal code Query the service (step 5).

例如:当商家需要向号段为180的通信号码对应的用户提供推送服务时,在判断得到180号段属于中国电信,则需向中国电信提供的查询接口发送查询信息,当商家得到中国电信查询接口反馈的状态信息表明此通信号码为停止使用状态时,则商家不在继续为该通信号码对应的用户提供推送服务;当商家需要向号段为138的通信号码所对应的用户提供推送服务时,在判断得到138号段属于中国移动,则需向中国移动提供的查询接口发送查询信息,当商家得到中国移动查询接口反馈的状态信息表明此通信号码为携号转网状态时,在得到中国移动查询接口反馈的该通信号码的转出方通信运营商为中国联通,则商家向中国联通提供的查询接口发送查询信息,当商家得到中国联通查询接口反馈的状态信息表明此通信号码为正常使用状态时,商家为该通信号码对应的用户提供推送服务。For example: when the merchant needs to provide push service to the user corresponding to the communication number with the number segment 180, and it is determined that the segment number 180 belongs to China Telecom, it needs to send the query information to the query interface provided by China Telecom. When the merchant gets the query from China Telecom When the status information fed back by the interface indicates that the communication number is out of use, the merchant will not continue to provide the push service for the user corresponding to the communication number; when the merchant needs to provide the push service to the user corresponding to the communication number with the number segment 138, If it is judged that segment 138 belongs to China Mobile, it is necessary to send the query information to the query interface provided by China Mobile. When the merchant receives the status information fed back by the China Mobile query interface indicating that the communication number is in the state of number portability, after obtaining the status of China Mobile If the communication operator of the communication number fed back by the inquiry interface is China Unicom, the merchant sends inquiry information to the inquiry interface provided by China Unicom. When the merchant receives the status information fed back by the inquiry interface of China Unicom, it indicates that the communication number is in normal use. , the merchant provides the push service for the user corresponding to the communication number.

本发明适用于的商家应当具有拥有大量最终用户、向其最终用户提供的关键服务体验较高程度上依赖于用户通信号码的有效性、不具备对最终用户有效移动号码状态的判断手段、若未能对用户移动号码状态变化快速做出响应的,将承担较大服务风险,甚至损失的特点;通过在运营商侧提供通信号码状态对外查询接口,可以发挥通信运营商的数据专长,以技术手段为商家提供更为准确、实时、精细化的通信号码状态信息,避免了商家直接向用户发起验证对用户造成打扰,有效提升用户对商家提供的产品/业务的使用体验,同时避免了通信资源的浪费。The merchants to which the present invention is applicable should have a large number of end users, the key service experience provided to their end users is highly dependent on the validity of the user's communication number, and there should be no means of judging the status of the end user's effective mobile number. Those who can quickly respond to the change of the user's mobile number status will bear the characteristics of greater service risks and even losses; by providing an external query interface for the communication number status on the operator side, the data expertise of the communication operator can be used, and technical means Provide merchants with more accurate, real-time, and refined communication number status information, avoid the interruption to users caused by merchants directly initiating verification to users, effectively improve users' experience of using products/services provided by merchants, and avoid communication resources. waste.

以上所述的是本发明的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本发明的保护范围内。The above are the preferred embodiments of the present invention, and it should be pointed out that for those skilled in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications are also included in the present invention. within the scope of protection of the invention.

Claims (20)

1.一种验证用户通信号码有效性的方法,应用于为待验证用户通信号码所属用户提供服务的商家平台,其特征在于,包括:1. a method for verifying the validity of the user's communication number, applied to the merchant platform that provides services for the user to which the user's communication number is to be verified, is characterized in that, comprising: 根据待验证用户通信号码,判断所述待验证用户通信号码所属的通信运营平台;According to the communication number of the user to be verified, determine the communication operation platform to which the communication number of the user to be verified belongs; 向所述通信运营平台提供的查询接口发送查询信息,从所述通信运营平台获得所述待验证用户通信号码当前的状态信息;Send query information to the query interface provided by the communication operation platform, and obtain the current status information of the communication number of the user to be verified from the communication operation platform; 根据所述通信运营平台返回的所述状态信息,判断为待验证用户通信号码提供服务是否有效,包括:状态信息表明待验证用户通信号码为正常使用状态、停止使用状态和空号状态,直接得到为待验证用户通信号码提供服务是否有效;According to the status information returned by the communication operation platform, judging whether the service provided by the communication number of the user to be verified is valid, including: the status information indicates that the communication number of the user to be verified is in normal use, out of use and empty, and directly obtain Whether it is valid to provide services for the communication number of the user to be verified; 当待验证用户通信号码为二次放号状态时,不能直接得到为该待验证用户通信号码提供服务是否有效的判断结果;When the communication number of the user to be verified is in the state of secondary number allocation, the judgment result of whether the service provided for the communication number of the user to be verified is effective cannot be directly obtained; 当待验证用户通信号码为携号转网状态时,该通信运营平台上还需要记录该通信号码的转出方信息通信运营平台信息。When the communication number of the user to be verified is in a portability state, the communication operation platform also needs to record the information of the communication operation platform of the transferer of the communication number. 2.根据权利要求1所述的方法,其特征在于,所述根据待验证用户通信号码,判断所述待验证用户通信号码所属的通信运营平台的步骤包括:2. The method according to claim 1, wherein, according to the communication number of the user to be verified, the step of judging the communication operation platform to which the communication number of the user to be verified belongs comprises: 根据待验证用户通信号码,获取所述待验证用户通信号码的通信运营商标识信息位;According to the communication number of the user to be verified, obtain the communication operator identification information bit of the communication number of the user to be verified; 根据所述通信运营商标识信息位,判断所述待验证用户通信号码所属的通信运营平台。According to the identification information bit of the communication operator, the communication operation platform to which the communication number of the user to be verified belongs is determined. 3.根据权利要求1所述的方法,其特征在于,所述根据所述通信运营平台返回的所述状态信息,判断为验证用户通信号码提供服务是否有效的步骤为:3. The method according to claim 1, wherein the step of judging whether the service provided by the user communication number is valid according to the state information returned by the communication operation platform is: 若所述状态信息表明所述待验证用户通信号码为正常使用状态,则判断得到为所述验证用户通信号码提供服务有效的结果;If the state information indicates that the communication number of the user to be verified is in a normal use state, it is determined that the service provided for the communication number of the verified user is valid; 若所述状态信息表明所述待验证用户通信号码为停止使用状态或空号状态,则判断得到为所述验证用户通信号码提供服务无效的结果。If the state information indicates that the communication number of the user to be verified is in the out-of-use state or the empty number state, it is determined that the service provided for the communication number of the verified user is invalid. 4.根据权利要求1所述的方法,其特征在于,所述根据所述通信运营平台返回的所述状态信息,判断为验证用户通信号码提供服务是否有效的步骤具体为:4. The method according to claim 1, wherein the step of judging whether the service provided by the user communication number is valid according to the state information returned by the communication operation platform is specifically: 若所述状态信息表明所述待验证用户通信号码为二次放号状态,则获取所述状态信息中包含的所述待验证用户通信号码的最近一次状态变更时间;If the status information indicates that the communication number of the user to be verified is in a secondary number allocation status, obtain the latest status change time of the communication number of the user to be verified contained in the status information; 获取商家平台上存储的所述待验证用户通信号码的注册时间;Obtain the registration time of the communication number of the user to be verified stored on the merchant platform; 将所述最近一次状态变更时间与所述注册时间进行比较,若所述注册时间早于所述最近一次状态变更时间,则判断得到为所述验证用户通信号码提供服务无效的结果;否则,判断得到为所述验证用户通信号码提供服务有效的结果。Comparing the last state change time with the registration time, if the registration time is earlier than the last state change time, it is judged that the service provided for the verification user communication number is invalid; otherwise, it is judged that A result is obtained that is valid for providing the service for the verification user communication number. 5.根据权利要求1所述的方法,其特征在于,所述根据所述通信运营平台返回的所述状态信息,判断为验证用户通信号码提供服务是否有效的步骤为:5. The method according to claim 1, wherein the step of judging whether the service provided by the user communication number is valid according to the state information returned by the communication operation platform is: 若所述状态信息表明所述待验证用户通信号码为携号转网状态,则根据所述状态信息中包含的转出方通信运营平台信息,在转出方通信运营平台上获取所述待验证用户通信号码当前的转出状态信息;If the status information indicates that the communication number of the user to be verified is in a portability state, then according to the information of the communication operation platform of the transfer-out party included in the status information, the communication operation platform of the transfer-out party is obtained on the communication operation platform of the transfer-out party. Current outgoing status information of the user's communication number; 若所述转出状态信息表明所述待验证用户通信号码为正常使用状态,则判断得到为所述验证用户通信号码提供服务有效的结果;If the transfer-out status information indicates that the communication number of the user to be verified is in a normal use state, it is judged that the service provided for the communication number of the verification user is valid; 若所述转出状态信息表明所述待验证用户通信号码为停止使用状态或空号状态,则判断得到为所述验证用户通信号码提供服务无效的结果;If the transfer-out status information indicates that the communication number of the user to be verified is in an out-of-use state or an empty number state, it is determined that the service provided for the communication number of the verified user is invalid; 若所述转出状态信息中包含的所述待验证用户通信号码为二次放号状态,则将所述转出状态信息中包含的所述待验证用户通信号码的最近一次状态变更时间与所述待验证用户通信号码在商家平台上的注册时间进行比较,若所述注册时间早于所述最近一次状态变更时间,则判断得到为所述验证用户通信号码提供服务无效的结果;否则,判断得到为所述验证用户通信号码提供服务有效的结果。If the communication number of the user to be verified contained in the transfer-out status information is in the state of secondary number allocation, compare the latest status change time of the communication number of the user to be verified contained in the transfer-out status information with the The registration time of the communication number of the user to be verified on the merchant platform is compared, and if the registration time is earlier than the time of the last state change, it is judged that the service provided for the communication number of the user to be verified is invalid; otherwise, it is judged that A result is obtained that is valid for providing the service for the verification user communication number. 6.一种验证用户通信号码有效性的装置,应用于为待验证用户通信号码所属用户提供服务的商家平台,其特征在于,包括:6. A device for verifying the validity of a user's communication number, which is applied to a merchant platform that provides services for users to which the user's communication number is to be verified, characterized in that it includes: 通信运营平台判断模块,用于根据待验证用户通信号码,判断所述待验证用户通信号码所属的通信运营平台;a communication operation platform judgment module, configured to judge the communication operation platform to which the communication number of the user to be verified belongs according to the communication number of the user to be verified; 状态信息获取模块,用于向所述通信运营平台提供的查询接口发送查询信息,从所述通信运营平台获得所述待验证用户通信号码当前的状态信息;a status information acquisition module, configured to send query information to the query interface provided by the communication operation platform, and obtain the current status information of the communication number of the user to be verified from the communication operation platform; 有效性验证模块,用于根据所述通信运营平台返回的所述状态信息,判断为待验证用户通信号码提供服务是否有效,包括:状态信息表明待验证用户通信号码为正常使用状态、停止使用状态和空号状态,直接得到为待验证用户通信号码提供服务是否有效;The validity verification module is used to judge whether the service provided by the communication number of the user to be verified is valid according to the state information returned by the communication operation platform, including: the state information indicates that the communication number of the user to be verified is in a normal use state and a stop-use state and empty number status, directly get whether it is effective to provide services for the communication number of the user to be verified; 当待验证用户通信号码为二次放号状态时,不能直接得到为该待验证用户通信号码提供服务是否有效的判断结果;When the communication number of the user to be verified is in the state of secondary number allocation, the judgment result of whether the service provided for the communication number of the user to be verified is effective cannot be directly obtained; 当待验证用户通信号码为携号转网状态时,该通信运营平台上还需要记录该通信号码的转出方信息通信运营平台信息。When the communication number of the user to be verified is in a portability state, the communication operation platform also needs to record the information of the communication operation platform of the transferer of the communication number. 7.根据权利要求6所述的装置,其特征在于,所述通信运营平台判断模块包括:7. The device according to claim 6, wherein the communication operation platform judgment module comprises: 标识信息获取单元,用于根据待验证用户通信号码,获取所述待验证用户通信号码的通信运营商标识信息位;an identification information obtaining unit, configured to obtain the communication operator identification information bit of the communication number of the user to be verified according to the communication number of the user to be verified; 通信运营平台判断单元,用于根据所述通信运营商标识信息位,判断所述待验证用户通信号码所属的通信运营平台。The communication operation platform judgment unit is used for judging the communication operation platform to which the communication number of the user to be verified belongs according to the identification information bit of the communication operator. 8.根据权利要求6所述的装置,其特征在于,所述有效性验证模块具体为:8. The device according to claim 6, wherein the validity verification module is specifically: 若所述状态信息表明所述待验证用户通信号码为正常使用状态,则判断得到为所述验证用户通信号码提供服务有效的结果;If the state information indicates that the communication number of the user to be verified is in a normal use state, it is determined that the service provided for the communication number of the verified user is valid; 若所述状态信息表明所述待验证用户通信号码为停止使用状态或空号状态,则判断得到为所述验证用户通信号码提供服务无效的结果。If the state information indicates that the communication number of the user to be verified is in the out-of-use state or the empty number state, it is determined that the service provided for the communication number of the verified user is invalid. 9.根据权利要求6所述的装置,其特征在于,所述有效性验证模块具体为:9. The device according to claim 6, wherein the validity verification module is specifically: 若所述状态信息表明所述待验证用户通信号码为二次放号状态,则获取所述状态信息中包含所述待验证用户通信号码的最近一次状态变更时间;If the status information indicates that the communication number of the user to be verified is in a secondary number allocation status, acquiring the latest status change time that includes the communication number of the user to be verified in the status information; 获取商家平台上存储的所述待验证用户通信号码的注册时间;Obtain the registration time of the communication number of the user to be verified stored on the merchant platform; 将所述最近一次状态变更时间与所述注册时间进行比较,若所述注册时间早于所述最近一次状态变更时间,则判断得到为所述验证用户通信号码提供服务无效的结果;否则,判断得到为所述验证用户通信号码提供服务有效的结果。Comparing the last state change time with the registration time, if the registration time is earlier than the last state change time, it is judged that the service provided for the verification user communication number is invalid; otherwise, it is judged that A result is obtained that is valid for providing the service for the verification user communication number. 10.根据权利要求6所述的装置,其特征在于,所述有效性验证模块具体为:10. The device according to claim 6, wherein the validity verification module is specifically: 若所述状态信息表明所述待验证用户通信号码为携号转网状态,则根据所述状态信息中包含的转出方通信运营平台信息,在转出方通信运营平台上获取所述待验证用户通信号码当前的转出状态信息;If the status information indicates that the communication number of the user to be verified is in a portability state, then according to the information of the communication operation platform of the transfer-out party included in the status information, the communication operation platform of the transfer-out party is obtained on the communication operation platform of the transfer-out party. Current outgoing status information of the user's communication number; 若所述转出状态信息表明所述待验证用户通信号码为正常使用状态,则判断得到为所述验证用户通信号码提供服务有效的结果;If the transfer-out status information indicates that the communication number of the user to be verified is in a normal use state, it is judged that the service provided for the communication number of the verification user is valid; 若所述转出状态信息表明所述待验证用户通信号码为停止使用状态或空号状态,则判断得到为所述验证用户通信号码提供服务无效的结果;If the transfer-out status information indicates that the communication number of the user to be verified is in an out-of-use state or an empty number state, it is determined that the service provided for the communication number of the verified user is invalid; 若所述转出状态信息中包含的所述待验证用户通信号码为二次放号状态,则将所述转出状态信息中包含的所述待验证用户通信号码的最近一次状态变更时间与所述待验证用户通信号码在商家平台上的注册时间进行比较,若所述注册时间早于所述最近一次状态变更时间,则判断得到为所述验证用户通信号码提供服务无效的结果;否则,判断得到为所述验证用户通信号码提供服务有效的结果。If the communication number of the user to be verified contained in the transfer-out status information is in the state of secondary number allocation, compare the latest status change time of the communication number of the user to be verified contained in the transfer-out status information with the The registration time of the communication number of the user to be verified on the merchant platform is compared, and if the registration time is earlier than the time of the last state change, it is judged that the service provided for the communication number of the user to be verified is invalid; otherwise, it is judged that A result is obtained that is valid for providing the service for the verification user communication number. 11.一种验证用户通信号码有效性的方法,应用于待验证用户通信号码所属的通信运营平台,其特征在于,包括:11. A method for verifying the validity of a user's communication number, applied to the communication operation platform to which the user's communication number to be verified belongs, is characterized in that, comprising: 接收为待验证用户通信号码所属用户提供服务的商家平台发送的查询信息;Receive the query information sent by the merchant platform that provides services for the user to which the communication number of the user to be verified belongs; 根据所述查询信息查找所述待验证用户通信号码当前的状态信息,其中,状态信息表明待验证用户通信号码为正常使用状态、停止使用状态和空号状态,直接得到为待验证用户通信号码提供服务是否有效;Find the current status information of the communication number of the user to be verified according to the query information, wherein the status information indicates that the communication number of the user to be verified is in normal use, out of use and empty, and directly obtain the information provided for the communication number of the user to be verified. whether the service is available; 当待验证用户通信号码为二次放号状态时,不能直接得到为该待验证用户通信号码提供服务是否有效的判断结果;When the communication number of the user to be verified is in the state of secondary number allocation, the judgment result of whether the service provided for the communication number of the user to be verified is effective cannot be directly obtained; 当待验证用户通信号码为携号转网状态时,该通信运营平台上还需要记录该通信号码的转出方信息通信运营平台信息;When the communication number of the user to be verified is in the state of number portability, the communication operation platform also needs to record the information of the communication operation platform of the transferer of the communication number; 将所述状态信息发送至所述商家平台。Sending the status information to the merchant platform. 12.根据权利要求11所述的方法,其特征在于,所述根据所述查询信息查询所述待验证用户通信号码当前的状态信息的步骤具体为:12. The method according to claim 11, wherein the step of querying the current status information of the communication number of the user to be verified according to the query information is specifically: 根据所述查询信息,在通信号码状态表中查找所述待验证用户通信号码对应的状态信息;According to the query information, look up the status information corresponding to the communication number of the user to be verified in the communication number status table; 若所述通信号码状态表中有所述待验证用户通信号码的记录,则直接获取所述待验证用户通信号码对应的状态信息;If there is a record of the communication number of the user to be verified in the communication number status table, directly obtain the status information corresponding to the communication number of the user to be verified; 若所述通信号码状态表中没有所述待验证通信号码的记录,则生成所述待验证通信号码对应的表明所述待验证用户通信号码为空号状态的状态信息,并将所述待验证用户通信号码的状态更新到所述通信号码状态表中;其中,If there is no record of the communication number to be verified in the communication number status table, generate status information corresponding to the communication number to be verified, indicating that the communication number of the user to be verified is empty, and record the communication number to be verified. The status of the user's communication number is updated to the communication number status table; wherein, 所述通信号码状态表中包括:通信号码、所述通信号码对应的状态信息以及所述通信号码最近一次状态变更时间。The communication number status table includes: the communication number, the status information corresponding to the communication number, and the latest state change time of the communication number. 13.根据权利要求12所述的方法,其特征在于,若所述通信号码状态表中有所述待验证用户通信号码的记录,则直接获取所述待验证用户通信号码对应的状态信息的步骤为:13. The method according to claim 12, wherein if there is a record of the communication number of the user to be verified in the communication number status table, the step of directly acquiring the status information corresponding to the communication number of the user to be verified for: 对所述待验证用户通信号码的状态信息进行判断;Judging the status information of the communication number of the user to be verified; 若所述状态信息为二次放号状态,则获取所述待验证用户通信号码的最近一次状态变更时间,所述二次放号状态和所述最近一次状态变更时间构成所述待验证通信号码的状态信息;If the status information is the status of the second number allocation, obtain the latest status change time of the communication number of the user to be verified, and the second status and the latest status change time constitute the communication number to be verified status information; 若所述状态信息为携号转网状态,则在携号转网转出方信息表中获取所述待验证用户通信号码的转出方通信运营平台信息,所述携号转网状态与所述转出方通信运营平台信息构成所述待验证通信号码的状态信息;其中,If the state information is the number portability transfer state, obtain the information of the transfer party's communication operation platform of the communication number of the user to be verified in the number portability transfer party information table. The number portability state is the same as that of the transfer party. The information of the communication operation platform of the transfer-out party constitutes the status information of the communication number to be verified; wherein, 所述携号转网转出方信息表中包括:通信号码、与所述通信号码对应的转出方通信运营平台信息以及所述通信号码的转出时间。The number portability transfer-out party information table includes: a communication number, the communication operation platform information of the transfer-out party corresponding to the communication number, and the transfer-out time of the communication number. 14.根据权利要求13所述的方法,其特征在于,所述方法还包括:14. The method of claim 13, wherein the method further comprises: 对通信运营平台上的所有通信号码的状态信息进行实时监测;Real-time monitoring of the status information of all communication numbers on the communication operation platform; 当监测到有第一通信号码的状态信息变更时,生成所述第一通信号码的最新状态信息;When monitoring that there is a change in the state information of the first communication number, generating the latest state information of the first communication number; 将所述第一通信号码的最新状态信息存储到通信号码状态表中。The latest state information of the first communication number is stored in the communication number state table. 15.根据权利要求14所述的方法,其特征在于,所述将所述通信号码的最新状态信息存储到通信号码状态表中的步骤包括:15. The method according to claim 14, wherein the step of storing the latest status information of the communication number in the communication number status table comprises: 检测通信号码状态表中是否存在所述第一通信号码的记录;Detecting whether there is a record of the first communication number in the communication number status table; 若所述通信号码状态表中存在所述第一通信号码的记录,则根据所述最新状态信息更新所述第一通信号码的状态信息;If there is a record of the first communication number in the communication number status table, update the status information of the first communication number according to the latest status information; 若所述通信号码状态表中不存在所述第一通信号码的记录,则将所述第一通信号码以及所述第一通信号码对应的最新状态信息存储到所述通信号码状态表中。If there is no record of the first communication number in the communication number status table, the first communication number and the latest status information corresponding to the first communication number are stored in the communication number status table. 16.根据权利要求14或15所述的方法,其特征在于,当所述最新状态信息表明所述第一通信号码为携号转网时,所述方法还包括:16. The method according to claim 14 or 15, wherein when the latest state information indicates that the first communication number is ported, the method further comprises: 获取所述第一通信号码的转出方通信运营平台信息以及转出时间;Obtain the information of the communication operation platform of the transfer-out party and the transfer-out time of the first communication number; 将所述转出方通信运营平台信息以及转出时间存储到携号转网转出方信息表中。The information of the communication operation platform of the transfer-out party and the transfer-out time are stored in the information table of the transfer-out party of the number portability transfer network. 17.一种验证用户通信号码有效性的装置,应用于待验证用户通信号码所属的通信运营平台,其特征在于,包括:17. A device for verifying the validity of a user's communication number, applied to a communication operation platform to which the user's communication number to be verified belongs, characterized in that it comprises: 接收模块,用于接收为待验证用户通信号码所属用户提供服务的商家平台发送的查询信息;The receiving module is used to receive the query information sent by the merchant platform that provides services for the user to which the communication number of the user to be verified belongs; 查找模块,用于根据所述查询信息查找所述待验证用户通信号码当前的状态信息,其中,状态信息表明待验证用户通信号码为正常使用状态、停止使用状态和空号状态,直接得到为待验证用户通信号码提供服务是否有效;The search module is used to search for the current state information of the communication number of the user to be verified according to the query information, wherein the state information indicates that the communication number of the user to be verified is in normal use, out of use and empty, and directly obtained as a pending Verify that the service provided by the user's communication number is valid; 当待验证用户通信号码为二次放号状态时,不能直接得到为该待验证用户通信号码提供服务是否有效的判断结果;When the communication number of the user to be verified is in the state of secondary number allocation, the judgment result of whether the service provided for the communication number of the user to be verified is effective cannot be directly obtained; 当待验证用户通信号码为携号转网状态时,该通信运营平台上还需要记录该通信号码的转出方信息通信运营平台信息;When the communication number of the user to be verified is in the state of number portability, the communication operation platform also needs to record the information of the communication operation platform of the transferer of the communication number; 发送模块,用于将所述状态信息发送至所述商家平台。A sending module, configured to send the status information to the merchant platform. 18.根据权利要求17所述的装置,其特征在于,所述装置还包括:18. The apparatus of claim 17, wherein the apparatus further comprises: 监测模块,用于对通信运营平台上的所有通信号码的状态信息进行实时监测;The monitoring module is used to monitor the status information of all communication numbers on the communication operation platform in real time; 状态信息生成模块,用于当监测到有第一通信号码的状态信息变更时,生成所述第一通信号码的最新状态信息;a status information generation module, configured to generate the latest status information of the first communication number when monitoring the status information of the first communication number to change; 第一存储模块,用于将所述第一通信号码的最新状态信息存储到通信号码状态表中。The first storage module is configured to store the latest state information of the first communication number in the communication number state table. 19.根据权利要求18所述的装置,其特征在于,当所述最新状态信息表明所述第一通信号码为携号转网时,所述装置还包括:19. The apparatus according to claim 18, wherein when the latest state information indicates that the first communication number is ported, the apparatus further comprises: 第一获取模块,用于获取所述第一通信号码的转出方通信运营平台信息以及转出时间;a first obtaining module, configured to obtain the information of the communication operation platform of the transfer-out party and the transfer-out time of the first communication number; 第二存储模块,用于将所述转出方通信运营平台信息以及转出时间存储到携号转网转出方信息表中。The second storage module is configured to store the information of the communication operation platform of the transfer-out party and the transfer-out time in the information table of the transfer-out party of the number portability network. 20.一种验证用户通信号码有效性的系统,其特征在于,包括如权利要求6至10任一项所述的验证用户通信号码有效性的装置和如权利要求17至19任一项所述的验证用户通信号码有效性的装置。20. A system for verifying the validity of a user's communication number, comprising the device for verifying the validity of a user's communication number as claimed in any one of claims 6 to 10 and the device as described in any one of claims 17 to 19 A device for verifying the validity of a user's communication number.
CN201510238093.6A 2015-05-12 2015-05-12 A method, device and system for verifying the validity of a user's communication number Active CN106303099B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510238093.6A CN106303099B (en) 2015-05-12 2015-05-12 A method, device and system for verifying the validity of a user's communication number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510238093.6A CN106303099B (en) 2015-05-12 2015-05-12 A method, device and system for verifying the validity of a user's communication number

Publications (2)

Publication Number Publication Date
CN106303099A CN106303099A (en) 2017-01-04
CN106303099B true CN106303099B (en) 2019-06-21

Family

ID=57631108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510238093.6A Active CN106303099B (en) 2015-05-12 2015-05-12 A method, device and system for verifying the validity of a user's communication number

Country Status (1)

Country Link
CN (1) CN106303099B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921957B (en) * 2017-03-23 2019-10-18 中国联合网络通信集团有限公司 Recognition method and device for secondary number allocation
CN106888443B (en) * 2017-03-27 2019-11-08 广东电网有限责任公司佛山供电局 Communication resource status monitoring method and system
CN108197147B (en) * 2017-11-29 2021-02-09 中国联合网络通信集团有限公司 Operation and maintenance method and device for number card database
CN108306882A (en) * 2018-01-31 2018-07-20 中国联合网络通信集团有限公司 A kind of method and the network equipment of terminal access business
CN110740096A (en) * 2018-07-21 2020-01-31 王正伟 Mobile communication control method based on time tag
CN110891095B (en) * 2018-09-07 2022-12-13 上海汽车集团股份有限公司 A method and device for verifying customer information
CN109087197B (en) * 2018-09-12 2020-07-31 中国联合网络通信集团有限公司 A kind of number change identification method and device
CN111294312A (en) * 2018-12-06 2020-06-16 中国移动通信集团山东有限公司 An account management method and device
CN110020950A (en) * 2019-04-10 2019-07-16 湖北风口网络科技有限公司 A kind of on-line finance method of commerce and device
CN110636505A (en) * 2019-10-24 2019-12-31 王恩惠 Method and system for protecting account security
CN111246030B (en) * 2019-12-20 2022-06-14 北京淇瑀信息科技有限公司 Method, device and system for judging number validity
CN114374963B (en) * 2020-10-15 2025-01-07 中国移动通信有限公司研究院 Information verification method, device and service registration method and device
CN112435117A (en) * 2020-11-27 2021-03-02 平安普惠企业管理有限公司 Loan overdue case collection method and device, electronic equipment and storage medium
CN113630767B (en) * 2021-08-25 2022-09-16 中国联合网络通信集团有限公司 Terminal addressing method and server
CN114727279B (en) * 2022-03-03 2024-01-23 阿里巴巴(中国)有限公司 Number detection method, device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7174191B2 (en) * 2002-09-10 2007-02-06 Motorola, Inc. Processing of telephone numbers in audio streams
CN103491227B (en) * 2013-09-30 2017-06-06 宇龙计算机通信科技(深圳)有限公司 Telephone number acquisition methods and terminal
CN104580637B (en) * 2014-12-30 2018-05-18 小米科技有限责任公司 Telephone number labeling method, terminal and Cloud Server

Also Published As

Publication number Publication date
CN106303099A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106303099B (en) A method, device and system for verifying the validity of a user's communication number
CN110086944B (en) Communication method and device based on virtual number
TWI806813B (en) Communication method and server
US10219150B2 (en) Method, client terminal and server for establishing communication
CN106529851B (en) Order data processing method, communication data query method and server
CN111010527B (en) Method and related device for establishing video call through short message link
CN105718461B (en) Information query method, apparatus and system based on call center
CN103209247B (en) Method and system that a kind of information shows and terminal and server
CN107018504B (en) Communication method, blacklist configuration method and device
US10212286B2 (en) System and method for allocation and management of shared virtual numbers
WO2015027781A1 (en) Communication method, data processing platform and communication system
JP4633192B1 (en) A method and computer program for investigating the validity and invalidity of IP phone numbers using a computer connected to the Internet
US20200220837A1 (en) System and method to use a mobile number in conjunction with a non-telephony internet connected device
WO2018133715A1 (en) Method for acquiring user information and relevant device
CN106921557B (en) Mail sending method and equipment
CN105405011A (en) Method, server and system for transaction authentication through mobile terminal
CN102209157B (en) Seat information processing system
JP5691427B2 (en) Communication cost settlement system, apparatus, method and program
KR20160086803A (en) Checking Method for Information about Client's Mobile Phone Number, Information Providing Server, Client Managing Server, and Telecommunications Company Server Used Therein
CN103067850A (en) Mobile communication service cost inquiry method and device and system
WO2019128122A1 (en) Method, device and system for associating automatic vending apparatus
US11991176B2 (en) Controlled method and system for secure information sharing
CN104427136A (en) Authentication method and interactive voice response (IVR) system
CN104348839B (en) Network communication method, device and system
CN114331394B (en) Resource processing method, device, computer equipment and storage medium

Legal Events

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