diff --git a/app/Http/Controllers/V1/Guest/PaymentController.php b/app/Http/Controllers/V1/Guest/PaymentController.php index 5eca10a..07a8bb0 100644 --- a/app/Http/Controllers/V1/Guest/PaymentController.php +++ b/app/Http/Controllers/V1/Guest/PaymentController.php @@ -41,12 +41,22 @@ class PaymentController extends Controller if (!$orderService->paid($callbackNo)) { return false; } + + $payment = Payment::where('id', $order->payment_id)->first(); $telegramService = new TelegramService(); $message = sprintf( - "๐Ÿ’ฐๆˆๅŠŸๆ”ถๆฌพ%sๅ…ƒ\nโ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”\n่ฎขๅ•ๅท๏ผš%s", + "๐Ÿ’ฐๆˆๅŠŸๆ”ถๆฌพ%sๅ…ƒ\n" . + "โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”\n" . + "ๆ”ฏไป˜ๆŽฅๅฃ๏ผš%s\n" . + "ๆ”ฏไป˜ๆธ ้“๏ผš%s\n" . + "ๆœฌ็ซ™่ฎขๅ•๏ผš`%s`" + , $order->total_amount / 100, + $payment->payment, + $payment->name, $order->trade_no ); + $telegramService->sendMessageWithAdmin($message); return true; }