From 80e78d97963ff26f63c74e0406c79cddc2b29090 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Tue, 16 Jan 2024 15:08:26 +0700 Subject: [PATCH] Fix sendPackageNotification --- system/cron.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system/cron.php b/system/cron.php index 86aa764e..75a7c373 100644 --- a/system/cron.php +++ b/system/cron.php @@ -119,7 +119,7 @@ foreach ($d as $ds) { $c = ORM::for_table('tbl_customers')->where('id', $ds['customer_id'])->find_one(); $m = Mikrotik::info($ds['routers']); $p = ORM::for_table('tbl_plans')->where('id', $u['plan_id'])->find_one(); - + $price = Lang::moneyFormat($p['price']); if ($p['is_radius']) { if (empty($p['pool_expired'])) { print_r(Radius::customerDeactivate($c['username'])); @@ -136,7 +136,7 @@ foreach ($d as $ds) { } Mikrotik::removeHotspotActiveUser($client, $c['username']); } - Message::sendPackageNotification($c['phonenumber'], $c['fullname'], $u['namebp'], $textExpired, $config['user_notification_expired']); + Message::sendPackageNotification($c['phonenumber'], $c['fullname'], $u['namebp'], $price, $textExpired, $config['user_notification_expired']); //update database user dengan status off $u->status = 'off'; $u->save(); @@ -174,7 +174,7 @@ foreach ($d as $ds) { $c = ORM::for_table('tbl_customers')->where('id', $ds['customer_id'])->find_one(); $m = ORM::for_table('tbl_routers')->where('name', $ds['routers'])->find_one(); $p = ORM::for_table('tbl_plans')->where('id', $u['plan_id'])->find_one(); - + $price = Lang::moneyFormat($p['price']); if ($p['is_radius']) { if (empty($p['pool_expired'])) { print_r(Radius::customerDeactivate($c['username'])); @@ -191,7 +191,7 @@ foreach ($d as $ds) { } Mikrotik::removePpoeActive($client, $c['username']); } - Message::sendPackageNotification($c['phonenumber'], $c['fullname'], $u['namebp'], $textExpired, $config['user_notification_expired']); + Message::sendPackageNotification($c['phonenumber'], $c['fullname'], $u['namebp'], $price, $textExpired, $config['user_notification_expired']); $u->status = 'off'; $u->save();