分开绑定支付宝接口和实名认证接口

This commit is contained in:
谭凯凯 2025-01-08 21:38:54 +08:00 committed by Tankaikai
parent 2aa8232480
commit 40b085aa2d
1 changed files with 6 additions and 3 deletions

View File

@ -93,15 +93,18 @@ public class AppCashController {
}
redisUtils.set(intervalKey, true, 30);
double money = Double.parseDouble(commonInfoService.findOne(929).getValue());
double v = cashOutService.queryUserTodayCashAmount(userId);
Double v = cashOutService.queryUserTodayCashAmount(userId);
if (v == null) {
v = 0.0d;
}
if ((v + amount) >= money) {
return Result.error("今日提现金额已达上限");
}
Result ret = Result.error();
try {
ret = cashOutService.withdraw(userId, amount, null, false);
int code = Convert.toInt(ret.get("code"),-1);
if(code == 0){
int code = Convert.toInt(ret.get("code"), -1);
if (code == 0) {
redisUtils.set(intervalKey, true, 60 * 3);
}
} catch (Exception e) {