KKSU
2024-02-21 0dded054a1744e032c30bc5b10fda1f2c94a4099
src/main/java/cc/mrbird/febs/mall/controller/CommonController.java
@@ -1,6 +1,7 @@
package cc.mrbird.febs.mall.controller;
import cc.mrbird.febs.common.annotation.ControllerEndpoint;
import cc.mrbird.febs.common.annotation.Limit;
import cc.mrbird.febs.common.entity.FebsResponse;
import cc.mrbird.febs.common.exception.FebsException;
import cc.mrbird.febs.common.utils.*;
@@ -42,6 +43,7 @@
    @ApiOperation(value = "获取验证码接口", notes = "获取验证码通用接口")
    @GetMapping(value = "/verifyCode")
    @Limit(key = "verifyCode", period = 60, count = 2, name = "验证码接口", prefix = "limit")
    public FebsResponse verifyCode(@ApiParam(name = "account", value = "手机号", required = true) @RequestParam(value = "account") String account,
                                   @ApiParam(name = "type", value = "类型1-手机号", required = true) @RequestParam("type") String type) {
        log.info("#账号:{}, 类型:{}#", account, type);
@@ -147,6 +149,7 @@
    @ApiOperation(value = "验证验证码接口")
    @PostMapping(value = "/checkCode")
    @Limit(key = "verifyCode", period = 60, count = 2, name = "验证码接口", prefix = "limit")
    public FebsResponse checkCode(@RequestBody AccountAndCodeDto accountAndCodeDto) {
        boolean flag = commonService.verifyCode(accountAndCodeDto.getAccount(), accountAndCodeDto.getCode());