From 1a40606720de1d79bbba9267f701158654e3a411 Mon Sep 17 00:00:00 2001 From: AGSTR <144728914+agstrxyz@users.noreply.github.com> Date: Sun, 14 Apr 2024 06:40:47 +0700 Subject: [PATCH] Update cron.php Fix auto renewal radius plan based --- system/cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/cron.php b/system/cron.php index b9ed0529..cb98500f 100644 --- a/system/cron.php +++ b/system/cron.php @@ -67,7 +67,7 @@ foreach ($d as $ds) { } } if ($p && $p['enabled'] && $c['balance'] >= $p['price']) { - if (Package::rechargeUser($ds['customer_id'], $p['routers'], $p['id'], 'Customer', 'Balance')) { + if (Package::rechargeUser($ds['customer_id'], $ds['routers'], $p['id'], 'Customer', 'Balance')) { // if success, then get the balance Balance::min($ds['customer_id'], $p['price']); echo "plan enabled: $p[enabled] | User balance: $c[balance] | price $p[price]\n";