mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
announce buy torrent add cache and lock
This commit is contained in:
@@ -188,7 +188,7 @@ class User extends Authenticatable implements FilamentUser, HasName
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = [
|
||||
'secret', 'passhash',
|
||||
'secret', 'passhash', 'passkey'
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -219,7 +219,7 @@ class User extends Authenticatable implements FilamentUser, HasName
|
||||
];
|
||||
|
||||
public static $commonFields = [
|
||||
'id', 'username', 'email', 'class', 'status', 'added', 'avatar',
|
||||
'id', 'username', 'email', 'class', 'status', 'added', 'avatar', 'passkey',
|
||||
'uploaded', 'downloaded', 'seedbonus', 'seedtime', 'leechtime',
|
||||
'invited_by', 'enabled', 'seed_points', 'last_access', 'invites',
|
||||
'lang', 'attendance_card', 'privacy', 'noad', 'downloadpos', 'donoruntil', 'donor',
|
||||
|
||||
@@ -349,6 +349,7 @@ class BonusRepository extends BaseRepository
|
||||
];
|
||||
BonusLogs::query()->insert($bonusLog);
|
||||
do_log("bonusLog: " . nexus_json_encode($bonusLog));
|
||||
clear_user_cache($user->id, $user->passkey);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user