Fix cronjob Delete customer
This commit is contained in:
parent
8be8737236
commit
04c480cafa
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 2023.9.1.1
|
||||||
|
|
||||||
|
- Fix cronjob Delete customer
|
||||||
|
|
||||||
## 2023.9.1
|
## 2023.9.1
|
||||||
|
|
||||||
- Critical bug fixes, bug happen when user buy package, expired time will be calculated from last expired, not from when they buy the package
|
- Critical bug fixes, bug happen when user buy package, expired time will be calculated from last expired, not from when they buy the package
|
||||||
|
@ -19,7 +19,7 @@ class Package
|
|||||||
*/
|
*/
|
||||||
public static function rechargeUser($id_customer, $router_name, $plan_id, $gateway, $channel)
|
public static function rechargeUser($id_customer, $router_name, $plan_id, $gateway, $channel)
|
||||||
{
|
{
|
||||||
global $_c, $_L, $_notifmsg;
|
global $_c;
|
||||||
$date_now = date("Y-m-d H:i:s");
|
$date_now = date("Y-m-d H:i:s");
|
||||||
$date_only = date("Y-m-d");
|
$date_only = date("Y-m-d");
|
||||||
$time_only = date("H:i:s");
|
$time_only = date("H:i:s");
|
||||||
|
@ -84,6 +84,7 @@ foreach ($d as $ds) {
|
|||||||
$client = Mikrotik::getClient($m['ip_address'], $m['username'], $m['password']);
|
$client = Mikrotik::getClient($m['ip_address'], $m['username'], $m['password']);
|
||||||
Mikrotik::setHotspotLimitUptime($client, $c['username']);
|
Mikrotik::setHotspotLimitUptime($client, $c['username']);
|
||||||
Mikrotik::removeHotspotActiveUser($client, $c['username']);
|
Mikrotik::removeHotspotActiveUser($client, $c['username']);
|
||||||
|
Mikrotik::removeHotspotUser($client, $c['username']);
|
||||||
Message::sendPackageNotification($c['phonenumber'], $c['fullname'], $u['namebp'], $textExpired, $config['user_notification_expired']);
|
Message::sendPackageNotification($c['phonenumber'], $c['fullname'], $u['namebp'], $textExpired, $config['user_notification_expired']);
|
||||||
}
|
}
|
||||||
//update database user dengan status off
|
//update database user dengan status off
|
||||||
@ -127,6 +128,7 @@ foreach ($d as $ds) {
|
|||||||
$client = Mikrotik::getClient($m['ip_address'], $m['username'], $m['password']);
|
$client = Mikrotik::getClient($m['ip_address'], $m['username'], $m['password']);
|
||||||
Mikrotik::disablePpoeUser($client, $c['username']);
|
Mikrotik::disablePpoeUser($client, $c['username']);
|
||||||
Mikrotik::removePpoeActive($client, $c['username']);
|
Mikrotik::removePpoeActive($client, $c['username']);
|
||||||
|
Mikrotik::removePpoeUser($client, $c['username']);
|
||||||
Message::sendPackageNotification($c['phonenumber'], $c['fullname'], $u['namebp'], $textExpired, $config['user_notification_expired']);
|
Message::sendPackageNotification($c['phonenumber'], $c['fullname'], $u['namebp'], $textExpired, $config['user_notification_expired']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"version": "2023.9.1"
|
"version": "2023.9.1.1"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user