ソースを参照

Merge branch 'dev-sc-260204'

shichen 4 ヶ月 前
コミット
a6b23ab27f
共有1 個のファイルを変更した8 個の追加0 個の削除を含む
  1. 8 0
      app/controller/api/Auth.php

+ 8 - 0
app/controller/api/Auth.php

@@ -1695,6 +1695,14 @@ class Auth extends BaseController
1695 1695
             return app('json')->fail('手机号未注册,请先注册');
1696 1696
         }
1697 1697
 
1698
+        // 获取实名状态
1699
+        $ertification = Db::name("user_certification")->where("uid", $user["uid"])->where(['status'=>1])->find();
1700
+        $is_ertification = 1;
1701
+        if (!$ertification){
1702
+            $is_ertification = -1;
1703
+        }
1704
+        $user["is_ertification"] = $is_ertification;
1705
+
1698 1706
         // if($this->source=='yhc' && $this->merId){
1699 1707
         //     $where=['mer_id'=>$this->merId,'uid'=>$user->uid];
1700 1708
         //     $count=Db::name('enterprise_user')->where($where)->count();