vali 6 년 전
부모
커밋
4ee001d054
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/index/controller/Register.php

+ 1 - 1
application/index/controller/Register.php

@@ -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()]);