Commit 5c86af7d by 冷斌

fix bug

parent 61e2a97f
......@@ -155,6 +155,14 @@ class PassportModel extends Model
}
}
public function wxLogin($uid)
{
$user = model('User')->where(['uid' => $uid])->find();
// 记录登录日志,首次登录判断
$this->rel = D('LoginRecord')->where("uid = " . $uid)->field('locktime')->find();
$this->_recordLogin($uid, true);
}
/**
* 根据标示符(email或uid)和未加密的密码获取本地用户(密码为null时不参与验证)
* @param string $login 标示符内容(为数字时:标示符类型为uid,其他:标示符类型为email)
......
......@@ -52,8 +52,10 @@ class PassportAction extends CommonAction
if (!$uid) {
return;
}
var_dump($uid);
die;
$this->passport->wxLogin($uid);
if (model('Passport')->isLogged()) {
U('classroom/Index/index', '', true); //dengjb 个人中心
}
}
/**
......
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