使用官方提供的PHP和postman脚本请求/v3/combine-transactions/jsapi 接口 返回错误一致, 但是进件接口都正常, 实在摸不着头脑, 麻烦官方人员帮忙看看
{"code":"SIGN_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_information":{"method":"POST","sign_message_length":561,"truncated_sign_message":"POST
/v3/combine-transactions/jsapi
1595403423
mOAJ35nXZiFq5apa6EF6xkOrwlzWjYCu
{\"combin
","url":"/v3/combine-transactions/jsapi"}},"message":"验签失败,请检查签名\t"}
"truncated_sign_message": "POST\n/v3/combine-transactions/jsapi\n1595400889\n1595400889050\n{\"combin\n" 你的Nonce(1595400889050)字符串位数不够,需要32字节。
POST
/v3/combine-transactions/jsapi
1595402887
29EIdWdpGX1TkLzNJYcz5dEkYXSHVmyJ
{"combine_out_trade_no":"A72202887106742878","combine_mchid":"1289440601","combine_appid":"wx39da5d46bd27c410","sub_orders":[{"mchid":"1289440601","attach":"\u80e1\u841d\u535c2","amount":{"amount":"1.00"},"out_trade_no":"A72202887136333121","sub_mchid":"1601184866","description":"\u80e1\u841d\u535c2-\u8ba2\u5355\u652f\u4ed8"}],"combine_payer_info":{"openid":"oLLbN5_oWjfC55g1sIbAmrPfBZcs"},"notify_url":"https:\/\/hfj.h5mail.com\/mallclient\/pay\/wechat_accept_paid_sft_notify"}
这是message
2AG05JfFItY/0BYocN8kNA8XGnLCKDqABiWQ7oMe0/IL+22M7RdQLF652/y6WIUlF8xzljr5bWcT+K5AP1QAUtoE8DV7BrtQidz34nljqarTDOkLsaewNIAohQyPFn3NTAuRYsQdBz9rxUq8Aoz12BYpN24PgxOQqjdKPbLxfzd9jb6iSYKQqmdZFyrOva9S4JfGmvMIVpVUnCHsb4m8pMs0d/UlwpPtGBE/gp0/BFX1t8FIHMpW9LjGLqLwkktIzBXpCyXTJGSHNaNbY19l95rikLcTeQh22T3NSqZmMonbx+d/aYlPCaZZkCI6uXInc26VrywHJN+THKKnAF5sfw==
这是签名
{"code":"SIGN_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_information":{"method":"POST","sign_message_length":561,"truncated_sign_message":"POST
/v3/combine-transactions/jsapi
1595402887
29EIdWdpGX1TkLzNJYcz5dEkYXSHVmyJ
{\"combin
","url":"/v3/combine-transactions/jsapi"}},"message":"验签失败,请检查签名\t"}
php调用接口返回的错误信息
[2020-07-22 15:37:03] local.NOTICE: --------message------
[2020-07-22 15:37:03] local.NOTICE: POST
/v3/combine-transactions/jsapi
1595403423
mOAJ35nXZiFq5apa6EF6xkOrwlzWjYCu
{"combine_out_trade_no":"A72203423090335935","combine_mchid":"1289440601","combine_appid":"wx39da5d46bd27c410","sub_orders":[{"mchid":"1289440601","attach":"\u80e1\u841d\u535c2","amount":{"amount":"1.00"},"out_trade_no":"A72203423117188195","sub_mchid":"1601184866","description":"\u80e1\u841d\u535c2-\u8ba2\u5355\u652f\u4ed8"}],"combine_payer_info":{"openid":"oLLbN5_oWjfC55g1sIbAmrPfBZcs"},"notify_url":"https:\/\/hfj.h5mail.com\/mallclient\/pay\/wechat_accept_paid_sft_notify"}
[2020-07-22 15:37:03] local.NOTICE: 561
[2020-07-22 15:37:03] local.NOTICE: --------$sign------
[2020-07-22 15:37:03] local.NOTICE: vVKG31gs/oYuFJxeUDQUOXzC+f5xlwoxxTIq9M9ZwhbCya7C+QiGy+awvfA87MjQ1e/ObP4u0/ZKxhUPzYBjBfNUXwhhgsZ1HJrMQ2Aiw+nJOzbPF11Dj73LKOd67DiX1bEWSZVEI3pan8glRAr/UBOVH8i0N76IO9eSNV2j5q7WXpx2i/ik72dvPs6Al8G8t1G34mEnQcwOvilNh8xRwasj9xXQ74bxn3KTgzXe+zq7S10W5P73IjSSPnvkbMxBd7Liu9HQFDyejnK2xD0OFAsDx/oqqmTq5084yDhwYwQY2NAb4t+Q9FfsyRJVmOzNuDijJyxishe+IA6cEB8DIw==
[2020-07-22 15:37:03] local.ERROR: 401 Unauthorized
[2020-07-22 15:37:03] local.ERROR: {"code":"SIGN_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_information":{"method":"POST","sign_message_length":561,"truncated_sign_message":"POST
/v3/combine-transactions/jsapi
1595403423
mOAJ35nXZiFq5apa6EF6xkOrwlzWjYCu
{\"combin
","url":"/v3/combine-transactions/jsapi"}},"message":"验签失败,请检查签名\t"}
可参考以下指引:https://wechatpay-api.gitbook.io/wechatpay-api-v3/chang-jian-wen-ti/qian-ming-xiang-guan
验证签名工具:链接:https://pan.baidu.com/s/1ixOAnYyZVW13dFr0jWVpvw 提取码:wujv
打印出的日志 使用工具验签可以通过, 我真是醉了, 求助官方人员, 是不是有bug了