From 3a483e3d6f38082097cef1b21b816c041117bf94 Mon Sep 17 00:00:00 2001 From: Stormeye Wu Date: Wed, 31 Jul 2019 14:21:14 +0800 Subject: [PATCH] =?UTF-8?q?[post][=E4=BF=AE=E6=94=B9]:3=E7=A7=92=E5=86=85?= =?UTF-8?q?=E9=87=8D=E5=A4=8Dpost=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/iformall/interceptor/RequestInterceptor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mallinkBApi/src/main/java/com/iformall/interceptor/RequestInterceptor.java b/mallinkBApi/src/main/java/com/iformall/interceptor/RequestInterceptor.java index ee8dc4ea7..ee48542e7 100644 --- a/mallinkBApi/src/main/java/com/iformall/interceptor/RequestInterceptor.java +++ b/mallinkBApi/src/main/java/com/iformall/interceptor/RequestInterceptor.java @@ -1,5 +1,7 @@ package com.iformall.interceptor; +import com.iformall.common.ErrorCode; +import com.iformall.exception.MallinkException; import com.iformall.utils.HashUtil; import com.iformall.utils.IPUtil; import org.slf4j.Logger; @@ -94,7 +96,7 @@ public class RequestInterceptor extends HandlerInterceptorAdapter { return true; } logger.info(key + ": 第二次提交"); - return false; + throw new MallinkException(ErrorCode.SYS_REPEAT_SUBMIT_EXCEPTION); } @Override