Skip to content

4.7.2.B. 版本微信回调通知解析报错 #3504

Description

@raven1997s

简要描述

下单回调通知,因代码问题,解析报错

模块版本情况

  • WxJava 模块名: pay
  • WxJava 版本号:4.7.2.B

详细描述

这里有问题,新版本configMap的key 不再是mchId ,而是mchId + "_" + appId:

configMap.get(result.getMchId()).getSignType()


 if (signType == null) {
        if (result.getSignType() != null) {
          // 如果解析的通知对象中signType有值,则使用它进行验签
          signType = result.getSignType();
        } else if (configMap.get(result.getMchId()).getSignType() != null) {
          // 如果配置中signType有值,则使用它进行验签
          signType = configMap.get(result.getMchId()).getSignType();
          this.switchover(result.getMchId(), result.getAppid());
        }
      }

  private String getConfigKey(String mchId, String appId) {
    return mchId + "_" + appId;
  }

日志

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