Kaynağa Gözat

补充接口

lizhen_gitee 1 yıl önce
ebeveyn
işleme
f20290c47f

+ 6 - 0
application/api/controller/User.php

@@ -477,6 +477,12 @@ class User extends Api
         Db::commit();
         $this->success();
     }
+
+    public function getpower(){
+        $rs = Db::name('user_power')->where('user_id',$this->auth->id)->find();
+        $this->success(1,$rs);
+    }
+
     /**
      * 修改会员权限
      */

+ 2 - 2
application/api/controller/Userauth.php

@@ -84,9 +84,9 @@ class Userauth extends Api
         }
 
         //阿里云身份证三要素认证
-        $auth_restult = $this->userauth_aliyun_two($idcard, $truename,$this->auth->mobile);
+        $auth_restult = $this->userauth_aliyun_two($idcard, $truename);
         if($auth_restult == false){
-            $this->error('身份证信息与姓名或注册手机号不符');
+            $this->error('身份证信息与姓名不符');
         }
 
         $data = [