代码提交

This commit is contained in:
wong
2025-09-23 17:42:23 +08:00
parent 7560389e35
commit 59115fbf69
2 changed files with 6 additions and 2 deletions

View File

@@ -42,10 +42,12 @@ class PaymentService
'body' => $order['goodsName'] ?? '',
'total_fee' => $order['money'] ?? 0,
'mch_create_ip' => Request::ip(),
'notify_url' => Env::get('payment.notify_url',''),
'notify_url' => Env::get('payment.notify_url','127.0.0.1'),
'nonce_str' => PaymentUtil::generateNonceStr(),
];
exit_data($params);
Db::startTrans();
try {
// 过滤空值签名
@@ -202,6 +204,8 @@ class PaymentService
*/
public function notify()
{
Log::info('支付结果异步通知');
$rawBody = file_get_contents('php://input');
Log::info('[SwiftPass][notify] raw: ' . $rawBody);