分开绑定支付宝接口和实名认证接口
This commit is contained in:
parent
2aa8232480
commit
40b085aa2d
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue