Delete Customer, make sure delete it on mikrotik, not go to expired plan

This commit is contained in:
Ibnu Maksum 2024-06-25 16:11:31 +07:00
parent a2eda99f88
commit bc721edaca
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
2 changed files with 2 additions and 0 deletions

View File

@ -339,6 +339,7 @@ switch ($action) {
if ($_app_stage != 'demo') {
if (file_exists($dvc)) {
require_once $dvc;
$p['plan_expired'] = 0;
(new $p['device'])->remove_customer($c, $p);
} else {
new Exception(Lang::T("Devices Not Found"));

View File

@ -333,6 +333,7 @@ switch ($action) {
if ($_app_stage != 'demo') {
if (file_exists($dvc)) {
require_once $dvc;
$p['plan_expired'] = 0;
(new $p['device'])->remove_customer($customer, $p);
} else {
new Exception(Lang::T("Devices Not Found"));