Commit f079806f by 冷斌

fix bug

parent ccd2bff8
......@@ -61,14 +61,34 @@ class ProfitController extends HomebaseController
echo json_encode(array("ret"=>0,'data'=>array(),'msg'=>'您的登陆状态失效,请重新登陆!'));
exit;
}
$data = [
'a' => 1,
'b' => 1,
];
$data = [];
$identity = 0;
$auth = M('users_auth')->where("uid=?", $uid)->find();
if (!empty($auth)) {
$identity = 3;
if ($auth['status'] == 0) {
$identity = 2;
}
if ($auth['status'] == 1) {
$identity = 1;
}
}
$data['identity'] = $identity;
$certification = 0;
$auth2=M('users_info_auth')->where("uid=?", $this->uid)->find();
if (!empty($auth2)) {
$certification = 3;
if ($auth['status'] == 0) {
$certification = 2;
}
if ($auth['status'] == 1) {
$certification = 1;
}
}
$data['certification'] = $certification;
echo json_encode(array("ret"=>200,'data'=>$data,'msg'=>''));
die;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment