Customer update insert

This commit is contained in:
Ibnu Maksum 2023-10-12 13:27:44 +07:00
parent b9828210ce
commit 5024df9c0b
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -45,7 +45,7 @@ switch ($action) {
$p = ORM::for_table('tbl_plans')->where('id', $c['plan_id'])->find_one();
if($p['is_radius']){
if($c['type'] == 'Hotspot' || ($c['type'] == 'PPPOE' && empty($d['pppoe_password']))){
Radius::customerAdd($d, $p);
Radius::customerUpsert($d, $p);
}
}else{
$mikrotik = Mikrotik::info($c['routers']);