1
0
mirror of synced 2025-11-06 04:20:53 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
1a877b0ab4 Fix validation logic in WxMaIntracityServiceImpl.balanceQuery
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
2025-09-22 16:35:48 +00:00
copilot-swe-agent[bot]
c0faec548e Initial plan 2025-09-22 16:25:59 +00:00

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<>();