mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-23 19:37:35 +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:
@@ -18,12 +18,12 @@ class UserUpdate extends FormRequest
|
||||
'password' => 'nullable|min:8',
|
||||
'transfer_enable' => 'numeric',
|
||||
'expired_at' => 'nullable|integer',
|
||||
'banned' => 'in:0,1',
|
||||
'banned' => 'bool',
|
||||
'plan_id' => 'nullable|integer',
|
||||
'commission_rate' => 'nullable|integer|min:0|max:100',
|
||||
'discount' => 'nullable|integer|min:0|max:100',
|
||||
'is_admin' => 'required|in:0,1',
|
||||
'is_staff' => 'required|in:0,1',
|
||||
'is_admin' => 'boolean',
|
||||
'is_staff' => 'boolean',
|
||||
'u' => 'integer',
|
||||
'd' => 'integer',
|
||||
'balance' => 'numeric',
|
||||
|
||||
Reference in New Issue
Block a user