调用微信余额接口,提示 sign 错误,但是下单正常。
dogeow opened this issue · comments
TNT commented
代码
$allPlugins = Pay::wechat()->mergeCommonPlugins([QueryPlugin::class]);
$result = Pay::wechat()->pay($allPlugins, [
'account_type' => 'BASIC',
]);
print_r($result);
dd($extra);
"body" => "{"code":"SIGN_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_information":{"method":"GET","sign_message_length":81,"truncated_sign_message":"GET\n/v3/merchant/fund/balance/BASIC\n1692356676\nExampleString\n\n","url":"/v3/merchant/fund/balance/BASIC"}},"message":"错误的签名,验签失败"} ◀"
]