Commit 1afa6457 by 冷斌

fix bug

parent 9b761a7c
......@@ -57,9 +57,6 @@ class ProfitController extends HomebaseController
$uid=I("uid");
$token=I("token");
var_dump($uid, $token);
die;
if( !$uid || !$token || checkToken($uid,$token)==700 ){
echo json_encode(array("ret"=>0,'data'=>array(),'msg'=>'您的登陆状态失效,请重新登陆!'));
exit;
......@@ -68,7 +65,7 @@ class ProfitController extends HomebaseController
$data = [];
$identity = 0;
$auth = M('users_auth')->where("uid=?", $uid)->find();
$auth = M('users_auth')->where("uid={$uid}")->find();
if (!empty($auth)) {
$identity = 3;
if ($auth['status'] == 0) {
......@@ -81,7 +78,7 @@ class ProfitController extends HomebaseController
$data['identity'] = $identity;
$certification = 0;
$auth2=M('users_info_auth')->where("uid=?", $uid)->find();
$auth2=M('users_info_auth')->where("uid={$uid}")->find();
if (!empty($auth2)) {
$certification = 3;
if ($auth['status'] == 0) {
......
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