浏览代码

Update User\Model for log

Visman 4 年之前
父节点
当前提交
b3be3c0745
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      app/Models/User/Model.php

+ 5 - 0
app/Models/User/Model.php

@@ -385,4 +385,9 @@ class Model extends DataModel
     {
     {
         return '1' == $this->c->config->b_poll_enabled && ! $this->isGuest;
         return '1' == $this->c->config->b_poll_enabled && ! $this->isGuest;
     }
     }
+
+    public function fLog(): string
+    {
+        return "id:{$this->id} gid:{$this->group_id} name:{$this->username}";
+    }
 }
 }