Skip to content

WxMaIntracityServiceImpl.balanceQuery 的判断条件写的有问题 #3704

Description

@Calshon

这里的判断条件写错了吧 逻辑是wxStoreId为null时 如果paymode是store或者null 就要拦截

    if (wxStoreId == null && (payMode != null && payMode != PayMode.STORE)) {
      throw new IllegalArgumentException("payMode是PAY_MODE_STORE或null时,必须传递wxStoreId");
    }

现在为传入wxStoreId,同时传入PayMode.APP就会被拦截
临时的解决方法是wxStoreId随便传入一个字符串

Activity

  1. binarywang commented on Sep 14, 2025

    @binarywang
    Owner

    欢迎直接提交PR进行修复

  2. added a commit that references this issue on Nov 15, 2025
  3. added a commit that references this issue on Dec 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions