Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apiv2接口SIGN_ERROR错误 #41

Closed
suiaiyun opened this issue Sep 9, 2021 · 4 comments
Closed

apiv2接口SIGN_ERROR错误 #41

suiaiyun opened this issue Sep 9, 2021 · 4 comments

Comments

@suiaiyun
Copy link

suiaiyun commented Sep 9, 2021

请求前的参数:
Array
(
[xml] => Array
(
[mch_billno] => etGkDmT3BJyuhnhU9d
[mch_id] => xxxxx
[wxappid] => wx01111111
[send_name] => aaaaa
[re_openid] => o8xSOxxxxxxx
[total_amount] => 100
[total_num] => 1
[wishing] => 红包祝福语
[client_ip] => 192.168.0.1
[act_name] => 活动名称
[remark] => 备注
)
[security] => 1
)

apiv2密钥尝试更换过,更换后还是返回签名错误,请问我要怎样处理?
请求代码:$instance->v2->mmpaymkttransfers->sendredpack->postAsync($data)

@TheNorthMemory
Copy link
Collaborator

稍等,这里应该有点问题,在看。

@suiaiyun
Copy link
Author

suiaiyun commented Sep 9, 2021

怎样了?有解决方案了吗?

@TheNorthMemory
Copy link
Collaborator

TheNorthMemory commented Sep 9, 2021

这是个bugFormatter::ksort在排序时,是按照键值按自然序排的,re_rem 在自然序列下, rem排在re_之前;而官方文档要求是字典序,字符串第3位的 _ chrcode是95, m是109,字典序排的话,re_应该排在rem之前。

已找到问题所在点,在写测试用例覆盖中。。。

@suiaiyun
Copy link
Author

suiaiyun commented Sep 9, 2021

好的,那我等待更新新版本了

@xy-peng xy-peng closed this as completed in da777fe Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants