提现 多次 问题
This commit is contained in:
parent
f620508c8c
commit
a6e052627d
|
|
@ -1079,4 +1079,16 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
try {
|
||||||
|
throw new ValidateException(StrUtil.format("超过当日提现限制次数{}次,请明天再试!", 2));
|
||||||
|
} catch (SqxException e) {
|
||||||
|
System.out.println("1");
|
||||||
|
} catch (ValidateException v) {
|
||||||
|
System.out.println(2);
|
||||||
|
}
|
||||||
|
System.out.println(3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ public class WuyouPay {
|
||||||
|
|
||||||
if (successCashCount >= Integer.parseInt(cashLimit.getValue())) {
|
if (successCashCount >= Integer.parseInt(cashLimit.getValue())) {
|
||||||
logger.warn("体现次数超限,当前限制{}次, 已经体现{}次", cashLimit.getValue(), successCashCount);
|
logger.warn("体现次数超限,当前限制{}次, 已经体现{}次", cashLimit.getValue(), successCashCount);
|
||||||
throw new ValidateException(StrUtil.format("超过当日提现限制次数{}次,请明天再试!", cashLimit.getValue()));
|
throw new SqxException(StrUtil.format("超过当日提现限制次数{}次,请明天再试!", cashLimit.getValue()));
|
||||||
}
|
}
|
||||||
checkCanCashByLimit(money);
|
checkCanCashByLimit(money);
|
||||||
todayTotalLimit(userId, money.doubleValue());
|
todayTotalLimit(userId, money.doubleValue());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue