🐛 #3704 【小程序】修复物流服务-同城配送服务-查询门店余额接口错误的逻辑

This commit is contained in:
Copilot
2025-11-15 17:03:08 +08:00
committed by GitHub
parent 4d4294707b
commit 57e12dee29

View File

@@ -170,7 +170,7 @@ public class WxMaIntracityServiceImpl implements WxMaIntracityService {
@Override
public WxMaStoreBalance balanceQuery(String wxStoreId, String serviceTransId, PayMode payMode)
throws WxErrorException {
if (wxStoreId == null && (payMode != null && payMode != PayMode.STORE)) {
if (wxStoreId == null && (payMode == null || payMode == PayMode.STORE)) {
throw new IllegalArgumentException("payMode是PAY_MODE_STORE或null时必须传递wxStoreId");
}
Map<String, Object> request = new HashMap<>();