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

收到了微信的响应,但是yansongda/pay无法解析这个响应? #1037

Open
Mr-Zhang-Cn opened this issue Nov 17, 2024 · 1 comment

Comments

@Mr-Zhang-Cn
Copy link

Mr-Zhang-Cn commented Nov 17, 2024

包版本号

"yansongda/pay": "~3.7.10"

问题描述

我配置了参数,写了一个api实现订单查询,传递了一个不存在的订单号,期望收到微信说 订单不存在。确实收到了微信说订单不存在,但是php代码层面却报错了,说微信返回的信息的格式不正确,意思就是这个依赖,解析不了微信的code和msg?

你的代码

1731825734725

报错详情

1731825734731

sdk 日志

日志太长,没办法截完整的,
1731825734725

nginx/apache 日志

涉及到 异步通知、同步通知 的问题,请贴出来

@Mr-Zhang-Cn Mr-Zhang-Cn changed the title 收到了微信的响应,但是依赖无法解析? 收到了微信的响应,但是yansongda/pay无法解析这个响应? Nov 17, 2024
@yansongda
Copy link
Owner

目前可以 catch 这个 exception,然后看里面的 $e->raw,这里有取舍,如果感兴趣也可以看看源码,提个 PR,看看怎么处理比较好

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