| | |
| | | |
| | | OtcSetting setting = otcSettingDao.selectById(1L); |
| | | String times = redisUtils.getString(AppContants.OTC_ORDER_CANCEL_TIMES + member.getId()); |
| | | times = times == null ? "0" :times; |
| | | if (setting.getCancellNum() <= Integer.parseInt(times)) { |
| | | throw new GlobalException("订单取消次数过多, 限制交易24小时"); |
| | | } |
| | |
| | | |
| | | OtcSetting setting = otcSettingDao.selectById(1L); |
| | | String times = redisUtils.getString(AppContants.OTC_ORDER_CANCEL_TIMES + member.getId()); |
| | | times = times == null ? "0" :times; |
| | | if (setting.getCancellNum() <= Integer.parseInt(times)) { |
| | | throw new GlobalException("订单取消次数过多, 限制交易24小时"); |
| | | } |