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
@@ -20,6 +20,7 @@ use Carbon\Carbon;
|
||||
use Carbon\CarbonInterface;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use App\Support\ServiceProvisionLog;
|
||||
|
||||
trait ActivatesPaidInvoices
|
||||
{
|
||||
@@ -59,6 +60,13 @@ trait ActivatesPaidInvoices
|
||||
|
||||
$this->attachServiceAddons($service, $item);
|
||||
|
||||
if ($service->wasRecentlyCreated && $service->status === 'pending') {
|
||||
ServiceProvisionLog::record($service, 'provision_requested', 'Khách hàng yêu cầu khởi tạo dịch vụ', [
|
||||
'order_num' => $order->order_num,
|
||||
'invoice_number' => $invoice->invoice_number,
|
||||
]);
|
||||
}
|
||||
|
||||
if ($service->wasRecentlyCreated && $item->product_id) {
|
||||
if ($item->os_id) {
|
||||
dispatch(new CreateVirtualMachineJob($item));
|
||||
|
||||
Reference in New Issue
Block a user