thingscloud-mobile-area-1.0.0-RELEASE

Mobile Phone Area(手机号码归属地)

License

License

GroupId

GroupId

link.thingscloud
ArtifactId

ArtifactId

thingscloud-mobile-area
Last Version

Last Version

1.0.0-RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

thingscloud-mobile-area-1.0.0-RELEASE
Mobile Phone Area(手机号码归属地)
Project URL

Project URL

https://github.com/zhouhailin/thingscloud-mobile-area
Source Code Management

Source Code Management

https://github.com/zhouhailin/thingscloud-mobile-area

Download thingscloud-mobile-area

How to add to project

<!-- https://jarcasting.com/artifacts/link.thingscloud/thingscloud-mobile-area/ -->
<dependency>
    <groupId>link.thingscloud</groupId>
    <artifactId>thingscloud-mobile-area</artifactId>
    <version>1.0.0-RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/link.thingscloud/thingscloud-mobile-area/
implementation 'link.thingscloud:thingscloud-mobile-area:1.0.0-RELEASE'
// https://jarcasting.com/artifacts/link.thingscloud/thingscloud-mobile-area/
implementation ("link.thingscloud:thingscloud-mobile-area:1.0.0-RELEASE")
'link.thingscloud:thingscloud-mobile-area:jar:1.0.0-RELEASE'
<dependency org="link.thingscloud" name="thingscloud-mobile-area" rev="1.0.0-RELEASE">
  <artifact name="thingscloud-mobile-area" type="jar" />
</dependency>
@Grapes(
@Grab(group='link.thingscloud', module='thingscloud-mobile-area', version='1.0.0-RELEASE')
)
libraryDependencies += "link.thingscloud" % "thingscloud-mobile-area" % "1.0.0-RELEASE"
[link.thingscloud/thingscloud-mobile-area "1.0.0-RELEASE"]

Dependencies

compile (1)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.28

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.18.6

runtime (2)

Group / Artifact Type Version
ch.qos.logback : logback-core jar 1.2.3
ch.qos.logback : logback-classic jar 1.2.3

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

号码归属地使用

Jdk Version License Maven Central

Maven引入

<dependency>
    <groupId>link.thingscloud</groupId>
    <artifactId>mobile-area</artifactId>
    <version>1.3.0-RELEASE</version>
</dependency>

归属地更新记录

1.1.0-RELEASE : 2020-03-13
1.2.0-RELEASE : 2020-07-18
1.3.0-RELEASE : 2020-12-24

使用

// 获取号码区域 : 区号/省份/地市
MobileArea.getInstance().getArea0("021");

// 获取号码区域 : 区号/省份/地市
MobileArea.getInstance().getArea("15121001234");
MobileArea.getInstance().getArea("0015121001234"));

// 获取外呼号码-如果不同区域会自动加 0
MobileArea.getInstance().getMobileNumber("15121001234", "020");
MobileArea.getInstance().getMobileNumber("+915121001234", "021");

// 是否是指定区域
MobileArea.getInstance().isSameArea("915121001234", "020");
MobileArea.getInstance().isSameArea("9015121007938", "021");

// 判断手机号码运营商 :移动,联通,电信,卫通,电信虚拟运营商,联通虚拟运营商,移动虚拟运营商
MobileType getMobileType("1521001234")

License

Apache License, Version 2.0 Copyright (C) Apache Software Foundation

Versions

Version
1.0.0-RELEASE