diff --git a/app/Services/UserService.php b/app/Services/UserService.php index 4b78330..67f1037 100644 --- a/app/Services/UserService.php +++ b/app/Services/UserService.php @@ -173,12 +173,11 @@ class UserService // 默认设置 $user->remind_expire = admin_setting('default_remind_expire', 1); $user->remind_traffic = admin_setting('default_remind_traffic', 1); + $user->expired_at = 0; // 可选字段 $this->setOptionalFields($user, $data); - $user->expired_at = 0; - // 处理计划 if (isset($data['plan_id'])) { $this->setPlanForUser($user, $data['plan_id'], $data['expired_at'] ?? null);