cek if not radius

This commit is contained in:
Ibnu Maksum 2023-11-21 14:41:21 +07:00
parent 8e84c32616
commit 9d79121696
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -326,7 +326,7 @@ class Package
$c = ORM::for_table('tbl_customers')->where('username', $username)->find_one();
$p = ORM::for_table('tbl_plans')->where('id', $plan_id)->where('enabled', '1')->find_one();
$b = ORM::for_table('tbl_user_recharges')->find_one($from_id);
if($p['routers'] == $b['routers']){
if($p['routers'] == $b['routers'] && $b['routers'] != 'radius'){
$mikrotik = Mikrotik::info($p['routers']);
}else{
$mikrotik = Mikrotik::info($b['routers']);
@ -370,7 +370,7 @@ class Package
}
}
// call the next mikrotik
if($p['routers'] != $b['routers']){
if($p['routers'] != $b['routers'] && $p['routers'] != 'radius'){
$mikrotik = Mikrotik::info($p['routers']);
}
if ($p['type'] == 'Hotspot') {