feat(service): huỷ dịch vụ, SSL, đổi mật khẩu hosting, lịch sử thanh toán theo hình thức
- Lịch sử thanh toán hoá đơn trả thêm `method` (tự động gia hạn / số dư / admin / chuyển khoản / hoàn tiền), bỏ đuôi `(method)` khỏi ghi chú - `DnsServer::panelUrl()` = https://<domain>/ dùng cho email cấp hosting và nút Plesk của khách - Order item trả thêm `uuid`/`type` của dịch vụ để FE dẫn tới trang quản lý - Yêu cầu huỷ dịch vụ, chứng chỉ SSL, lịch sử gia hạn, đổi mật khẩu hosting cho khách Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
a6b641015e
commit
b44a88bb52
@@ -129,6 +129,17 @@ class PleskClientService
|
||||
}
|
||||
}
|
||||
|
||||
public function changePassword(DnsServer $server, ModuleHostingPleskClient $client, string $password): bool
|
||||
{
|
||||
if (!$this->resetPassword($server, (int) $client->plesk_client_id, $password)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$client->update(['password' => Crypt::encryptString($password)]);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private function resetPassword(DnsServer $server, int $pleskClientId, string $password): bool
|
||||
{
|
||||
try {
|
||||
|
||||
@@ -138,8 +138,7 @@ class PleskHostingService
|
||||
'ftp_password' => $ftpPassword,
|
||||
'plesk_login' => $pleskLogin,
|
||||
'plesk_password' => $pleskPassword,
|
||||
// Plesk's actual login page — not the :8443 REST API entry point.
|
||||
'plesk_panel_url' => 'https://' . $server->publicHost() . '/login_up.php',
|
||||
'plesk_panel_url' => $server->panelUrl(),
|
||||
'created_at' => now()->format('d/m/Y H:i:s'),
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user