| | |
| | | import org.springframework.web.servlet.HandlerInterceptor; |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.ruoyi.common.annotation.RepeatSubmit; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.ServletUtils; |
| | | |
| | | /** |
| | |
| | | { |
| | | if (this.isRepeatSubmit(request, annotation)) |
| | | { |
| | | AjaxResult ajaxResult = AjaxResult.error(annotation.message()); |
| | | Result ajaxResult = Result.error(annotation.message()); |
| | | ServletUtils.renderString(response, JSON.toJSONString(ajaxResult)); |
| | | return false; |
| | | } |