add remove Active user when extends

This commit is contained in:
Ibnu Maksum 2024-05-07 11:28:51 +07:00
parent a40b2cbea3
commit 651969924c
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -579,7 +579,7 @@ switch ($action) {
$code = Lang::randomUpLowCase($code);
}
$vouchers[] = $code;
}
}
@ -785,8 +785,12 @@ switch ($action) {
Radius::customerAddPlan($c, $p, $tur['expiration'] . ' ' . $tur['time']);
} else {
if ($tur['type'] == 'Hotspot') {
Mikrotik::removeHotspotUser($client, $c['username']);
Mikrotik::removeHotspotActiveUser($client, $c['username']);
Mikrotik::addHotspotUser($client, $p, $c);
} else if ($tur['type'] == 'PPPOE') {
Mikrotik::removePpoeUser($client, $c['username']);
Mikrotik::removePpoeActive($client, $c['username']);
Mikrotik::addPpoeUser($client, $p, $c);
}
}