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

OKhttp与Jodd的生成小程序码实现类当微信后端报错时不会抛异常问题 #2301

Closed
yiyi910 opened this issue Sep 6, 2021 · 0 comments
Milestone

Comments

@yiyi910
Copy link

yiyi910 commented Sep 6, 2021

简要描述

OKhttp与Jodd的生成小程序码实现类当微信后端报错时不会抛异常问题

模块版本情况

  • WxJava 模块名: weixin-java-miniapp
  • WxJava 版本号: 4.1.0

详细描述

1.当微信生成小程序码返回异常(比如参数错误)时的Content-Type为application/json, 而OKhttp实现类OkHttpQrcodeBytesRequestExecutor与OkHttpQrcodeFileRequestExecutor中判断的是否为text/plain才抛异常, 反之则写入文件或返回字节数组, 故此处不会抛任何异常
同理JoddHttpQrcodeFileRequestExecutor也是这个问题, 且设置的filePath不生效

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