mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-07-14 20:14:24 +02:00
commit
c7ec8e2d27
1 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ foreach ($d as $ds) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($p && $p['enabled'] && $c['balance'] >= $p['price']) {
|
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
|
// if success, then get the balance
|
||||||
Balance::min($ds['customer_id'], $p['price']);
|
Balance::min($ds['customer_id'], $p['price']);
|
||||||
echo "plan enabled: $p[enabled] | User balance: $c[balance] | price $p[price]\n";
|
echo "plan enabled: $p[enabled] | User balance: $c[balance] | price $p[price]\n";
|
||||||
|
@ -127,7 +127,7 @@ foreach ($d as $ds) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($p && $p['enabled'] && $c['balance'] >= $p['price']) {
|
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
|
// if success, then get the balance
|
||||||
Balance::min($ds['customer_id'], $p['price']);
|
Balance::min($ds['customer_id'], $p['price']);
|
||||||
echo "plan enabled: $p[enabled] | User balance: $c[balance] | price $p[price]\n";
|
echo "plan enabled: $p[enabled] | User balance: $c[balance] | price $p[price]\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue