请求数据:{"mchid":"1686022399","out_trade_no":"20240923142431232065","order_id":"o202409231551411832182491","out_refund_no":"r2024092611365718323558","refund_amount":100,"refund_from":1}
响应结果:{"errcode":9403200,"errmsg":"参数为空或非法 detail:[支付签名[pay_sig]校验失败] rid: 66f4d6da-72a6c1db-136fbf81"}
$signData = [
"mchid" => "1686022399",
"out_trade_no" => "20240923142431232065",
"order_id" => "o202409231551411832182491",
"out_refund_no" => "r2024092611365718323558",
"refund_amount" => 100,
"refund_from" => 1
];
$signData = json_encode($signData, JSON_UNESCAPED_UNICODE);
$appKey = "1OQZtyTWw94IUxhhZYPeqxcDuw8voUTN";
$pay_sig = hash_hmac('sha256', 'requestCommonPayment&' . $signData, $appKey);
已处理,uri使用错误导致,感谢各位大佬的关注。