sdk会替换path
Closed this issue · 1 comments
tianpomin commented
TheNorthMemory commented
请使用placeholder
形式传递参数,例如:
->chain('v3/pay/partner/transactions/out-trade-no/{out_trade_no}')->get([
'out_trade_no' => 'QA23120742257529292',
'query' => [
'sp_mchid' => '123',
'sub_mchid' => '456',
]
]);
另外建议安装IDE开发辅助包 https://github.com/TheNorthMemory/wechatpay-openapi , IDE带语法提示可纠正
不恰当的拼接传递参数方式。