improve medal time range no limit display

This commit is contained in:
xiaomlove
2023-02-09 16:34:38 +08:00
parent 75e2e0ecfe
commit ac5dc99953
10 changed files with 14 additions and 9 deletions

View File

@@ -462,6 +462,7 @@ class UserRepository extends BaseRepository
$targetUser->usernameChangeLogs()->create($changeLog);
$targetUser->username = $changeLog['username_new'];
$targetUser->save();
$this->clearCache($targetUser);
});
return true;
}
@@ -498,6 +499,7 @@ class UserRepository extends BaseRepository
$modComment = date('Y-m-d') . " - " . $message['msg'];
$targetUser->updateWithModComment(['class' => $newClass], $modComment);
Message::add($message);
$this->clearCache($targetUser);
});
return true;
@@ -561,7 +563,7 @@ class UserRepository extends BaseRepository
}
}
if ($result) {
clear_user_cache($user->id, $user->passkey);
$this->clearCache($user);
if ($notify) {
Message::add($message);
}