Kaynağa Gözat

实名认证

lizhen_gitee 1 yıl önce
ebeveyn
işleme
b2a89c469b
1 değiştirilmiş dosya ile 3 ekleme ve 20 silme
  1. 3 20
      application/api/controller/Userauth.php

+ 3 - 20
application/api/controller/Userauth.php

@@ -3,20 +3,9 @@
 namespace app\api\controller;
 
 use app\common\controller\Api;
-use app\common\library\Ems;
-use app\common\library\Sms;
-use fast\Random;
-use think\Config;
-use think\Validate;
-
-use app\common\library\Token;
 use think\Db;
-use app\common\model\UserDeviceInfo;
-use onlogin\onlogin;
+use think\Cache;
 
-use addons\epay\library\Service;
-//use addons\epay\library\Wechat;
-use app\common\library\Wechat;
 
 /**
  * 实名认证,真人认证相关
@@ -27,7 +16,7 @@ class Userauth extends Api
     protected $noNeedRight = '*';
 
 
-    //申请真人认证
+    //申请真人认证,留着写任务用
     public function apply_real_confirm(){
 
         Db::startTrans();
@@ -77,6 +66,7 @@ class Userauth extends Api
         }
 
         if($this->auth->idcard_status == 1){
+
             $this->error('您已经完成实名认证');
         }
 
@@ -149,14 +139,7 @@ class Userauth extends Api
 
     }
 
-    public function test(){
-        $cardNo = '';
-        $realname = '';
-        $mobile = '';
 
-        $rs = $this->userauth_aliyun_three($cardNo,$realname,$mobile);
-        dump($rs);
-    }
 
     //产品链接:https://market.aliyun.com/products/57000002/cmapi026100.html?spm=5176.730005.result.8.1dbc123e8ArY19&innerSource=search#sku=yuncode2010000006
     //阿里云-数脉api