|
|
|
@ -80,8 +80,8 @@ public class CashCollectionServiceImpl implements CashCollectionService { |
|
|
|
if (cashCollection.getPermanentGold() == 0 && cashCollection.getFreeGold() == 0) { |
|
|
|
throw new IllegalArgumentException("金币数量不能为空"); |
|
|
|
} |
|
|
|
if (cashCollection.getWalletId() == null || cashCollection.getWalletId() < 0 || cashCollection.getWalletId() > 10) { |
|
|
|
throw new IllegalArgumentException("钱包ID不能为空"); |
|
|
|
if (cashCollection.getWalletId() == null || cashCollection.getWalletId() < 1 || cashCollection.getWalletId() > 10) { |
|
|
|
throw new IllegalArgumentException("钱包ID为1~10"); |
|
|
|
} |
|
|
|
} |
|
|
|
if (!cashCollection.getGoodsName().equals("金币充值")) { |
|
|
|
|