Skip to content

Commit 57e12de

Browse files
authored
🐛 #3704 【小程序】修复物流服务-同城配送服务-查询门店余额接口错误的逻辑
1 parent 4d42947 commit 57e12de

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)