fix bug cron and update plan

This commit is contained in:
Ibnu Maksum 2023-11-09 14:52:41 +07:00
parent 9190660c1c
commit bd8dd87384
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
3 changed files with 8 additions and 3 deletions

View File

@ -2,6 +2,11 @@
# CHANGELOG
## 2023.11.9
- fix bug variable in cron
- fix update plan
## 2023.10.27
- Backup and restore database

View File

@ -118,7 +118,7 @@ foreach ($d as $ds) {
if (empty($p['pool_expired'])) {
print_r(Radius::customerDeactivate($c['username']));
} else {
Radius::upsertCustomerAttr($c['username'], 'Framed-Pool', $plan['pool_expired'], ':=');
Radius::upsertCustomerAttr($c['username'], 'Framed-Pool', $p['pool_expired'], ':=');
print_r(Radius::disconnectCustomer($c['username']));
}
} else {
@ -172,7 +172,7 @@ foreach ($d as $ds) {
if (empty($p['pool_expired'])) {
print_r(Radius::customerDeactivate($c['username']));
} else {
Radius::upsertCustomerAttr($c['username'], 'Framed-Pool', $plan['pool_expired'], ':=');
Radius::upsertCustomerAttr($c['username'], 'Framed-Pool', $p['pool_expired'], ':=');
print_r(Radius::disconnectCustomer($c['username']));
}
} else {

View File

@ -1,3 +1,3 @@
{
"version": "2023.10.27"
"version": "2023.11.9"
}