提现时间为每天8:00-18:00
This commit is contained in:
parent
9cca25f3a7
commit
625a2aeb9b
|
|
@ -2,6 +2,7 @@ package com.sqx.modules.pay.controller.app;
|
|||
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.sqx.common.annotation.Debounce;
|
||||
import com.sqx.common.utils.PageUtils;
|
||||
|
|
@ -22,6 +23,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author fang
|
||||
|
|
@ -92,6 +95,13 @@ public class AppCashController {
|
|||
}
|
||||
}
|
||||
redisUtils.set(intervalKey, true, 30);
|
||||
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
int hour = calendar.get(Calendar.HOUR_OF_DAY);
|
||||
if (hour >= 8 && hour <= 18) {
|
||||
return Result.error("提现时间为每天8:00-18:00");
|
||||
}
|
||||
|
||||
double money = Double.parseDouble(commonInfoService.findOne(929).getValue());
|
||||
Double v = cashOutService.queryUserTodayCashAmount(userId);
|
||||
if (v == null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue