mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-30 14:49:25 +02:00
add full name in telegram notification
This commit is contained in:
parent
403de91fba
commit
4c02283fd0
1 changed files with 10 additions and 10 deletions
|
@ -195,8 +195,8 @@ class Package
|
||||||
$t->admin_id = '0';
|
$t->admin_id = '0';
|
||||||
}
|
}
|
||||||
$t->save();
|
$t->save();
|
||||||
|
|
||||||
Message::sendTelegram("#u$c[username] #recharge #Hotspot \n" . $p['name_plan'] .
|
Message::sendTelegram("#u$c[username] $c[fullname] #recharge #Hotspot \n" . $p['name_plan'] .
|
||||||
"\nRouter: " . $router_name .
|
"\nRouter: " . $router_name .
|
||||||
"\nGateway: " . $gateway .
|
"\nGateway: " . $gateway .
|
||||||
"\nChannel: " . $channel .
|
"\nChannel: " . $channel .
|
||||||
|
@ -250,14 +250,14 @@ class Package
|
||||||
$t->admin_id = '0';
|
$t->admin_id = '0';
|
||||||
}
|
}
|
||||||
$t->save();
|
$t->save();
|
||||||
|
|
||||||
Message::sendTelegram("#u$c[username] #buy #Hotspot \n" . $p['name_plan'] .
|
Message::sendTelegram("#u$c[username] $c[fullname] #buy #Hotspot \n" . $p['name_plan'] .
|
||||||
"\nRouter: " . $router_name .
|
"\nRouter: " . $router_name .
|
||||||
"\nGateway: " . $gateway .
|
"\nGateway: " . $gateway .
|
||||||
"\nChannel: " . $channel .
|
"\nChannel: " . $channel .
|
||||||
"\nPrice: " . Lang::moneyFormat($p['price']));
|
"\nPrice: " . Lang::moneyFormat($p['price']));
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if ($b) {
|
if ($b) {
|
||||||
|
@ -330,8 +330,8 @@ class Package
|
||||||
$t->admin_id = '0';
|
$t->admin_id = '0';
|
||||||
}
|
}
|
||||||
$t->save();
|
$t->save();
|
||||||
|
|
||||||
Message::sendTelegram("#u$c[username] #recharge #PPPOE \n" . $p['name_plan'] .
|
Message::sendTelegram("#u$c[username] $c[fullname] #recharge #PPPOE \n" . $p['name_plan'] .
|
||||||
"\nRouter: " . $router_name .
|
"\nRouter: " . $router_name .
|
||||||
"\nGateway: " . $gateway .
|
"\nGateway: " . $gateway .
|
||||||
"\nChannel: " . $channel .
|
"\nChannel: " . $channel .
|
||||||
|
@ -385,14 +385,14 @@ class Package
|
||||||
}
|
}
|
||||||
$t->type = "PPPOE";
|
$t->type = "PPPOE";
|
||||||
$t->save();
|
$t->save();
|
||||||
|
|
||||||
Message::sendTelegram("#u$c[username] #buy #PPPOE \n" . $p['name_plan'] .
|
Message::sendTelegram("#u$c[username] $c[fullname] #buy #PPPOE \n" . $p['name_plan'] .
|
||||||
"\nRouter: " . $router_name .
|
"\nRouter: " . $router_name .
|
||||||
"\nGateway: " . $gateway .
|
"\nGateway: " . $gateway .
|
||||||
"\nChannel: " . $channel .
|
"\nChannel: " . $channel .
|
||||||
"\nPrice: " . Lang::moneyFormat($p['price']));
|
"\nPrice: " . Lang::moneyFormat($p['price']));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
run_hook("recharge_user_finish");
|
run_hook("recharge_user_finish");
|
||||||
Message::sendInvoice($c, $t);
|
Message::sendInvoice($c, $t);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue