wupengfei 2 years ago
parent
commit
f75e5e5f26
2 changed files with 32 additions and 2 deletions
  1. 2 1
      .idea/workspace.xml
  2. 30 1
      application/api/controller/Expedite.php

+ 2 - 1
.idea/workspace.xml

@@ -3,6 +3,7 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/api/controller/Expedite.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Expedite.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -248,7 +249,7 @@
       <workItem from="1677718149453" duration="25714000" />
       <workItem from="1677805207495" duration="7323000" />
       <workItem from="1678063982310" duration="24531000" />
-      <workItem from="1678149106133" duration="3060000" />
+      <workItem from="1678149106133" duration="4876000" />
     </task>
     <servers />
   </component>

+ 30 - 1
application/api/controller/Expedite.php

@@ -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);
+    }