send expired date to telegram when customer recharge
This commit is contained in:
parent
7e5a718ba8
commit
face1dfa57
@ -218,6 +218,7 @@ class Package
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($b) {
|
if ($b) {
|
||||||
|
$lastExpired = Lang::dateAndTimeFormat($b['expiration'], $b['time']);
|
||||||
$isChangePlan = false;
|
$isChangePlan = false;
|
||||||
if ($config['extend_expiry'] != 'no') {
|
if ($config['extend_expiry'] != 'no') {
|
||||||
if ($b['namebp'] == $p['name_plan'] && $b['status'] == 'on') {
|
if ($b['namebp'] == $p['name_plan'] && $b['status'] == 'on') {
|
||||||
@ -347,6 +348,8 @@ class Package
|
|||||||
"\nRouter: " . $router_name .
|
"\nRouter: " . $router_name .
|
||||||
"\nGateway: " . $gateway .
|
"\nGateway: " . $gateway .
|
||||||
"\nChannel: " . $channel .
|
"\nChannel: " . $channel .
|
||||||
|
"\nLast Expired: $lastExpired" .
|
||||||
|
"\nNew Expired: " . Lang::dateAndTimeFormat($date_exp, $time).
|
||||||
"\nPrice: " . Lang::moneyFormat($p['price'] + $add_cost) .
|
"\nPrice: " . Lang::moneyFormat($p['price'] + $add_cost) .
|
||||||
"\nNote:\n" . $note);
|
"\nNote:\n" . $note);
|
||||||
} else {
|
} else {
|
||||||
@ -459,6 +462,7 @@ class Package
|
|||||||
"\nRouter: " . $router_name .
|
"\nRouter: " . $router_name .
|
||||||
"\nGateway: " . $gateway .
|
"\nGateway: " . $gateway .
|
||||||
"\nChannel: " . $channel .
|
"\nChannel: " . $channel .
|
||||||
|
"\nExpired: " . Lang::dateAndTimeFormat($date_exp, $time).
|
||||||
"\nPrice: " . Lang::moneyFormat($p['price'] + $add_cost) .
|
"\nPrice: " . Lang::moneyFormat($p['price'] + $add_cost) .
|
||||||
"\nNote:\n" . $note);
|
"\nNote:\n" . $note);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user