Skip to content

Commit 1a877b0

Browse files
Copilotbinarywang
andcommitted
Fix validation logic in WxMaIntracityServiceImpl.balanceQuery
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
1 parent c0faec5 commit 1a877b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaIntracityServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public WxMaStoreFlowResponse<? extends WxMaStoreFlowResponse.BasicFlowRecord> qu
170170
@Override
171171
public WxMaStoreBalance balanceQuery(String wxStoreId, String serviceTransId, PayMode payMode)
172172
throws WxErrorException {
173-
if (wxStoreId == null && (payMode != null && payMode != PayMode.STORE)) {
173+
if (wxStoreId == null && (payMode == null || payMode == PayMode.STORE)) {
174174
throw new IllegalArgumentException("payMode是PAY_MODE_STORE或null时,必须传递wxStoreId");
175175
}
176176
Map<String, Object> request = new HashMap<>();

0 commit comments

Comments
 (0)