频率限制4
This commit is contained in:
parent
641e949f1e
commit
106a4e9851
|
|
@ -27,6 +27,8 @@ public class AppUserMoneyDetailsController {
|
|||
@Login
|
||||
@ApiOperation("钱包明细")
|
||||
@GetMapping("/queryUserMoneyDetails")
|
||||
@Limiting
|
||||
@Debounce(interval = 3000, value = "#userId")
|
||||
public Result queryUserMoneyDetails(Integer page, Integer limit, @RequestAttribute Long userId,Integer classify,
|
||||
Integer type, Integer moneyType, Integer viewType) {
|
||||
return userMoneyDetailsService.queryUserMoneyDetails(page, limit,null, userId,classify,type, moneyType ,viewType);
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ public class AppCourseController extends AbstractController {
|
|||
// @Login
|
||||
@GetMapping("/selectCourse")
|
||||
@ApiOperation("查询短剧信息")
|
||||
@Limiting
|
||||
public Result selectCourse(@ApiParam("页") Integer page, @ApiParam("条") Integer limit, @ApiParam("分类id") Long classifyId,
|
||||
@ApiParam("搜索内容") String title, Long bannerId, Integer sort, String token, Integer isPrice,
|
||||
Integer over, Integer wxCourse, Integer dyCourse, Integer wxShow, Integer dyShow, HttpServletRequest request) {
|
||||
|
|
|
|||
|
|
@ -204,6 +204,7 @@ public class DiscSpinningController {
|
|||
})
|
||||
@ApiOperation("抽取大转盘")
|
||||
@Debounce(value = "#userId")
|
||||
@Limiting
|
||||
public Result draw(@ApiIgnore @RequestAttribute("userId") Long userId, @RequestParam(required = false, defaultValue = "1") Integer source) throws CzgException {
|
||||
String lockKey = StrUtil.format("user:disc-spinning:limit:user:lock:{}", userId);
|
||||
if (redisUtils.hasKey(lockKey)) {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ 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.annotation.Limiting;
|
||||
import com.sqx.common.utils.PageUtils;
|
||||
import com.sqx.common.utils.RedisUtils;
|
||||
import com.sqx.common.utils.Result;
|
||||
|
|
@ -65,6 +66,8 @@ public class AppCashController {
|
|||
|
||||
@Login
|
||||
@GetMapping("/canCash")
|
||||
@Debounce(interval = 3000, value = "#userId")
|
||||
@Limiting
|
||||
public Result canCash(@RequestAttribute("userId") Long userId) {
|
||||
CommonInfo info = commonInfoService.findOne(928);
|
||||
if ("0".equals(info.getValue())) {
|
||||
|
|
@ -140,6 +143,7 @@ public class AppCashController {
|
|||
@ApiOperation("查询提现记录列表")
|
||||
@ResponseBody
|
||||
@Debounce(interval = 3000, value = "#userId")
|
||||
@Limiting
|
||||
public Result selectHelpProfit(int page, int limit, @RequestAttribute("userId") Long userId) {
|
||||
CashOut cashOut = new CashOut();
|
||||
cashOut.setUserId(userId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue