fix change plan for radius

This commit is contained in:
Ibnu Maksum 2023-11-20 09:02:33 +07:00
parent 21d83268f7
commit 486e22f020
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -231,7 +231,11 @@ switch ($action) {
//$d->recharged_on = $recharged_on;
$d->expiration = $expiration;
$d->time = $time;
$d->routers = $p['routers'];
if($p['is_radius']){
$d->routers = 'radius';
}else{
$d->routers = $p['routers'];
}
$d->save();
Package::changeTo($username, $id_plan, $id);
_log('[' . $admin['username'] . ']: ' . 'Edit Plan for Customer ' . $d['username'] . ' to [' . $d['plan_name'] . '][' . Lang::moneyFormat($d['price']) . ']', 'Admin', $admin['id']);