mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 18:48:14 -05:00
详细支付信息
This commit is contained in:
parent
59f40dfd02
commit
cd45e55620
@ -41,12 +41,22 @@ class PaymentController extends Controller
|
|||||||
if (!$orderService->paid($callbackNo)) {
|
if (!$orderService->paid($callbackNo)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$payment = Payment::where('id', $order->payment_id)->first();
|
||||||
$telegramService = new TelegramService();
|
$telegramService = new TelegramService();
|
||||||
$message = sprintf(
|
$message = sprintf(
|
||||||
"💰成功收款%s元\n———————————————\n订单号:%s",
|
"💰成功收款%s元\n" .
|
||||||
|
"———————————————\n" .
|
||||||
|
"支付接口:%s\n" .
|
||||||
|
"支付渠道:%s\n" .
|
||||||
|
"本站订单:`%s`"
|
||||||
|
,
|
||||||
$order->total_amount / 100,
|
$order->total_amount / 100,
|
||||||
|
$payment->payment,
|
||||||
|
$payment->name,
|
||||||
$order->trade_no
|
$order->trade_no
|
||||||
);
|
);
|
||||||
|
|
||||||
$telegramService->sendMessageWithAdmin($message);
|
$telegramService->sendMessageWithAdmin($message);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user