代码提交
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user