Skip to content

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

Description

@yiyi910

简要描述

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

模块版本情况

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

详细描述

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions