feat: nhắc gia hạn QR theo dịch vụ, failover server hosting, CCCD admin, log cấp phát dịch vụ
- Mail campaign: mẫu nhắc gia hạn thanh toán QR, chọn dịch vụ + chu kỳ từng dòng (renewal_services) - Hosting: nhiều server Plesk cho một gói (service_plan_servers), chuyển server khi server chết - Admin xem/sửa giấy tờ định danh khách, tuỳ chọn gia hạn cho khách, nhật ký cấp phát dịch vụ - Đánh dấu mẫu email dịch vụ là non-marketing Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
047c23beff
commit
55a834a2f8
@@ -34,7 +34,8 @@ class ServicePlanRequest extends FormRequest
|
||||
'features.*' => 'string|distinct|max:100',
|
||||
'is_active' => 'boolean',
|
||||
'sort_order' => 'nullable|integer|min:0',
|
||||
'dns_manager_server_id' => 'nullable|integer|exists:dns_manager_servers,id',
|
||||
'server_ids' => 'nullable|array|max:10',
|
||||
'server_ids.*' => 'integer|distinct|exists:dns_manager_servers,id',
|
||||
'plesk_plan_name' => 'nullable|string|max:255',
|
||||
'note' => 'nullable|string',
|
||||
];
|
||||
@@ -48,10 +49,17 @@ class ServicePlanRequest extends FormRequest
|
||||
$validated = $this->validated();
|
||||
|
||||
return [
|
||||
...collect($validated)->except(['plesk_plan_name', 'note'])->all(),
|
||||
'dns_manager_server_id' => $validated['dns_manager_server_id'] ?? null,
|
||||
...collect($validated)->except(['plesk_plan_name', 'note', 'server_ids'])->all(),
|
||||
'sort_order' => $validated['sort_order'] ?? 0,
|
||||
'is_active' => $validated['is_active'] ?? true,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<int, int>
|
||||
*/
|
||||
public function serverIds(): array
|
||||
{
|
||||
return $this->validated()['server_ids'] ?? [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user