mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
admin add UserModifyLog
This commit is contained in:
@@ -9,4 +9,14 @@ class SiteLog extends NexusModel
|
||||
|
||||
protected $fillable = ['added', 'txt', 'security_level', 'uid'];
|
||||
|
||||
public static function add($uid, $content, $isMod = false): void
|
||||
{
|
||||
self::query()->insert([
|
||||
'uid' => $uid,
|
||||
'txt' => $content,
|
||||
'security_level' => $isMod ? 'mod' : 'normal',
|
||||
'added' => now(),
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user