瀏覽代碼

Update User model

Visman 2 年之前
父節點
當前提交
600ff5d9da
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/Models/User/User.php

+ 3 - 1
app/Models/User/User.php

@@ -405,7 +405,9 @@ class User extends DataModel
 
     public function fLog(): string
     {
-        return "id:{$this->id} gid:{$this->group_id} name:{$this->username}";
+        return $this->isGuest
+            ? "id:{$this->id} gid:{$this->group_id} guest"
+            : "id:{$this->id} gid:{$this->group_id} name:{$this->username}";
     }
 
     /**