修改上次登录时间错误
This commit is contained in:
1 parent
9b8bd06b33
commit
30835518be
1 file changed
+4
-2
@@ -68,11 +68,13 @@ class Index extends Controller
|
||||
}
|
||||
|
||||
// 将本次信息上传到服务器上
|
||||
$userinfo = AD::getByUsername($data['username']);
|
||||
$userinfo = AD::where('username',$data['username'])
|
||||
->field('lastip,username,ip,denglucishu,lasttime,thistime')
|
||||
->find();
|
||||
$userinfo->lastip = $userinfo->ip;
|
||||
$userinfo->ip = request()->ip();
|
||||
$userinfo->denglucishu = ['inc', 1];
|
||||
$userinfo->lasttime = $userinfo->thistime;
|
||||
$userinfo->lasttime = $userinfo->getData('thistime');
|
||||
$userinfo->thistime = time();
|
||||
$userinfo->save();
|
||||
|
||||
|
||||
Reference in new issue
Block a user