分开绑定支付宝接口和实名认证接口
This commit is contained in:
@@ -93,15 +93,18 @@ public class AppCashController {
|
|||||||
}
|
}
|
||||||
redisUtils.set(intervalKey, true, 30);
|
redisUtils.set(intervalKey, true, 30);
|
||||||
double money = Double.parseDouble(commonInfoService.findOne(929).getValue());
|
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) {
|
if ((v + amount) >= money) {
|
||||||
return Result.error("今日提现金额已达上限");
|
return Result.error("今日提现金额已达上限");
|
||||||
}
|
}
|
||||||
Result ret = Result.error();
|
Result ret = Result.error();
|
||||||
try {
|
try {
|
||||||
ret = cashOutService.withdraw(userId, amount, null, false);
|
ret = cashOutService.withdraw(userId, amount, null, false);
|
||||||
int code = Convert.toInt(ret.get("code"),-1);
|
int code = Convert.toInt(ret.get("code"), -1);
|
||||||
if(code == 0){
|
if (code == 0) {
|
||||||
redisUtils.set(intervalKey, true, 60 * 3);
|
redisUtils.set(intervalKey, true, 60 * 3);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user