mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-24 03:57:27 +08:00
fix: resolve known issues and improve code standards
- Fix known bugs in user, plan, and server modules - Standardize code formatting and structure - Optimize database queries and model relationships - Improve request validation and error handling - Update admin controllers for better consistency
This commit is contained in:
@@ -53,10 +53,10 @@ class UserObserver
|
||||
$nextResetTime = $this->trafficResetService->calculateNextResetTime($user);
|
||||
|
||||
if ($nextResetTime) {
|
||||
$user->next_reset_at = $nextResetTime->timestamp;
|
||||
$user->setAttribute('next_reset_at', $nextResetTime->timestamp);
|
||||
} else {
|
||||
// 如果计算结果为空,清除重置时间
|
||||
$user->next_reset_at = null;
|
||||
$user->setAttribute('next_reset_at', null);
|
||||
}
|
||||
|
||||
} catch (\Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user