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