Browse Source

20260305充值钱包id不为空

huangqizheng/feature-20260309142559-钱包退款
wangguorui 1 month ago
parent
commit
1ef1e6c13f
  1. 4
      src/main/java/com/example/demo/serviceImpl/cash/CashCollectionServiceImpl.java

4
src/main/java/com/example/demo/serviceImpl/cash/CashCollectionServiceImpl.java

@ -272,7 +272,9 @@ public class CashCollectionServiceImpl implements CashCollectionService {
}if (cashRecord.getPermanentGold() == 0){
throw new IllegalArgumentException("永久金币数量不能为空");
}
if (cashRecord.getWalletId() == null) {
throw new IllegalArgumentException("钱包ID不能为空");
}
}
if (!cashRecord.getGoodsName().equals("金币充值")) {
if (cashRecord.getGoodNum() == 0) {

Loading…
Cancel
Save