@@ -130,7 +130,7 @@ class Register extends Common
}
- if ($nowuid) {
+ if (!empty($nowuid)) {
$old = Db::name('accounts')->where(['account_name' => $nowuid])->find();
if ($old) {
Db::name('accounts')->where(['account_name' => $nowuid])->update(['last_login_time' => time()]);