|
|
@@ -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;
|