|
@@ -1043,7 +1043,36 @@ class Expedite extends Base
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
+ /**
|
|
|
+ * @title 获取手机号前缀
|
|
|
+ * @desc 获取手机号前缀
|
|
|
+ * @author qc
|
|
|
+ * @method GET
|
|
|
+ * @url /api/Expedite/getPhonePrefix
|
|
|
+ * @header name:Authorization require:1 desc:Token
|
|
|
+ * @return name:title type:int default:-- desc:名称
|
|
|
+ * @return name:code type:int default:-- desc:前缀
|
|
|
+ */
|
|
|
+ public function getPhonePrefix()
|
|
|
+ {
|
|
|
+ $prefix = [
|
|
|
+ ['title' => '中国大陆','code'=>'86'],
|
|
|
+ ['title' => '中国香港','code'=>'852'],
|
|
|
+ ['title' => '中国澳门','code'=>'853'],
|
|
|
+ ['title' => '中国台湾','code'=>'886'],
|
|
|
+ ['title' => '韩国','code'=>'82'],
|
|
|
+ ['title' => '日本','code'=>'81'],
|
|
|
+ ['title' => '美国','code'=>'1'],
|
|
|
+ ['title' => '加拿大','code'=>'1'],
|
|
|
+ ['title' => '新加坡','code'=>'65'],
|
|
|
+ ['title' => '马来西亚','code'=>'62'],
|
|
|
+ ['title' => '俄罗斯','code'=>'7'],
|
|
|
+ ['title' => '新西兰','code'=>'64'],
|
|
|
+ ['title' => '法国','code'=>'33'],
|
|
|
+ ['title' => '德国','code'=>'49'],
|
|
|
+ ];
|
|
|
+ $this->success('ok',$prefix);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|