Browse Source

fix:代理用户限额为null抛错导致的前台无法接受其他数据

main
zhj 1 month ago
parent
commit
ab87c7f952
  1. 3
      coin-system/src/main/java/com/coin/business/service/impl/UserAccountServiceImpl.java

3
coin-system/src/main/java/com/coin/business/service/impl/UserAccountServiceImpl.java

@ -268,7 +268,8 @@ public class UserAccountServiceImpl implements IUserAccountService {
// 2. 查询用户的限额信息
BigDecimal walletLimit = walletLimitConfigService.getWalletLimitByType(loginUser.getUserType());
if (walletLimit == null) {
throw new ServiceException("当前用户不存在限额");
return String.valueOf("999999999999999.00");
// throw new ServiceException("当前用户不存在限额");
} else {
return String.valueOf(walletLimit);
}

Loading…
Cancel
Save