@@ -122,6 +122,7 @@ class Register extends Common
$old = Db::name('accounts')->where(['account_name' => $nowuid])->find();
if ($old) {
+ Db::name('accounts')->where(['account_name' => $nowuid])->update(['last_login_time' => time()]);
return json(['code' => 1, 'data' => ['id' => $old['id'], 'name' => $nowuid, 'token' => $old['token'], 'avatar' => $avatar], 'msg' => '注册成功']);
}