xxxrrrdddd 2 years ago
parent
commit
c7a93b124f
3 changed files with 9 additions and 1 deletions
  1. 4 1
      LICENSE
  2. 2 0
      application/api/controller/MobileController.php
  3. 3 0
      application/service/id/IdVerify.php

+ 4 - 1
LICENSE

@@ -1 +1,4 @@
-22995
+外网面板地址: http://120.79.95.107:8888/ac3aba12
+内网面板地址: http://172.25.148.46:8888/ac3aba12
+username: ndfsuxxl
+password: 23c9d581

+ 2 - 0
application/api/controller/MobileController.php

@@ -17,6 +17,7 @@ use app\common\model\SysConfig;
 use app\common\service\Jdpay;
 use app\common\service\SmsSend;
 use app\common\service\TransferCheck;
+use app\service\id\IdVerify;
 use think\App;
 use think\Db;
 use think\db\Query;
@@ -255,6 +256,7 @@ class MobileController extends UserApi
             $this->_validate([
                 'id_no|身份证'=>['require','regex'=>'/^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/'],
             ]);
+            IdVerify::instance()->check($data['name'],$data['id_no']);
         }
 
         Db::startTrans();

+ 3 - 0
application/service/id/IdVerify.php

@@ -1,6 +1,8 @@
 <?php
 namespace app\service\id;
 use app\service\id\config\DES;
+use traits\think\Instance;
+
 /**
 * @desc 综合业务平台--查询 API
 * @author harvey
@@ -8,6 +10,7 @@ use app\service\id\config\DES;
 *
 */
 class IdVerify {
+    use Instance;
 /**
 * 取得数据
 * @param string $type 查询类型