Update order.php

fix gagal beli voucher paket radius rest
This commit is contained in:
AGSTR 2024-08-26 19:15:40 +07:00 committed by GitHub
parent 50a3f0a175
commit e31aeca2dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -205,7 +205,7 @@ switch ($action) {
if (!$plan['enabled']) { if (!$plan['enabled']) {
r2(U . "home", 'e', 'Plan is not exists'); r2(U . "home", 'e', 'Plan is not exists');
} }
if ($routes['2'] == 'radius') { if ($plan['is_radius'] == '1') {
$router_name = 'radius'; $router_name = 'radius';
} else { } else {
$router_name = $plan['routers']; $router_name = $plan['routers'];