Explorar o código

Merge branch 'dev-sc-260204'

shichen hai 4 meses
pai
achega
8f304bac70
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      app/controller/api/Auth.php

+ 3 - 2
app/controller/api/Auth.php

@@ -774,8 +774,9 @@ class Auth extends BaseController
774 774
         $data["is_merchant"]=$is_merchant===0||$is_merchant>0?$is_merchant:-1;
775 775
         $data['phone1'] =substr($data['phone'], 0, 3) . '****' . substr($data['phone'], 7, 4);
776 776
         $data['longtime'] = intval((time()- strtotime($data['create_time'])) / 86400);
777
-        $is_ertification = Db::name("user_certification")->where("uid", $user["uid"])->where(['status'=>1])->find();
778
-        if (!$is_ertification){
777
+        $ertification = Db::name("user_certification")->where("uid", $user["uid"])->where(['status'=>1])->find();
778
+        $is_ertification = 1;
779
+        if (!$ertification){
779 780
             $is_ertification = -1;
780 781
         }
781 782
         $data["is_ertification"] = $is_ertification;