Fix expired notification

This commit is contained in:
Ibnu Maksum 2023-10-24 15:12:10 +07:00
parent 09ead77d7b
commit 9e09611816
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -129,8 +129,8 @@ foreach ($d as $ds) {
Mikrotik::removeHotspotUser($client, $c['username']);
}
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'], $textExpired, $config['user_notification_expired']);
//update database user dengan status off
$u->status = 'off';
$u->save();
@ -183,8 +183,8 @@ foreach ($d as $ds) {
Mikrotik::removePpoeUser($client, $c['username']);
}
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'], $textExpired, $config['user_notification_expired']);
$u->status = 'off';
$u->save();