zjh
4 天以前 41cb551eaa18b3110d8971f0a32074352fa0aa7f
zjh20250730-1
3个文件已修改
6 ■■■■ 已修改文件
ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysLoginController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ltkj-framework/src/main/java/com/ltkj/framework/interceptor/RepeatSubmitInterceptor.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysLoginController.java
@@ -234,7 +234,7 @@
     */
    @GetMapping(value = "/getCaptchaConfigKey")
    @ApiOperation(value = "查询验证码开关 Y开N关")
    @RepeatSubmit
//    @RepeatSubmit
    public AjaxResult getCaptchaConfigKey() {
        return success(configService.selectConfigByKey("captcha_switch"));
    }
ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java
@@ -456,7 +456,7 @@
    @PostMapping
    @ApiOperation(value = "新增客户")
    @Transactional
//    @RepeatSubmit
    @RepeatSubmit
    @Log(title = "新增客户信息", businessType = BusinessType.INSERT)
    public AjaxResult add(@RequestBody @ApiParam(value = "客户对象信息") TjCustomer tjCustomer) {
        if (null == tjCustomer.getCusIdcard() || null == tjCustomer.getCusPhone()) {
ltkj-framework/src/main/java/com/ltkj/framework/interceptor/RepeatSubmitInterceptor.java
@@ -27,7 +27,7 @@
            RepeatSubmit annotation = method.getAnnotation(RepeatSubmit.class);
            if (annotation != null) {
                if (this.isRepeatSubmit(request, annotation)) {
                    AjaxResult ajaxResult = AjaxResult.success();
                    AjaxResult ajaxResult = AjaxResult.error("同志,不要请求这么快,好吗");
                    ServletUtils.renderString(response, JSON.toJSONString(ajaxResult));
                    return false;
                }