From 670a05d60b715e01b266052ce035b9da20e94070 Mon Sep 17 00:00:00 2001 From: chenjiahe <763432473@qq.com> Date: 星期三, 27 十月 2021 17:07:13 +0800 Subject: [PATCH] 优化 --- src/main/java/com/platform/verification/VerificationTool.java | 6 +++--- src/main/java/com/platform/resultTool/PlatformCode.java | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/platform/resultTool/PlatformCode.java b/src/main/java/com/platform/resultTool/PlatformCode.java index e2a4c02..6719822 100644 --- a/src/main/java/com/platform/resultTool/PlatformCode.java +++ b/src/main/java/com/platform/resultTool/PlatformCode.java @@ -21,6 +21,8 @@ public static final String ERROR_PARAMETER_TYPE = "204"; /*璁块棶鏃犳晥*/ public static final String ERROR_INVALID_VISIT = "205"; + /*璁块棶瓒呮椂*/ + public static final String ERRO_VISIT_OVERTIMR = "667"; /*body鏍煎紡閿欒*/ public static final String ERROR_BODY_DATA = "500"; diff --git a/src/main/java/com/platform/verification/VerificationTool.java b/src/main/java/com/platform/verification/VerificationTool.java index e9b48c5..e52b87c 100644 --- a/src/main/java/com/platform/verification/VerificationTool.java +++ b/src/main/java/com/platform/verification/VerificationTool.java @@ -29,12 +29,12 @@ return PlatformResult.failure(PlatformCode.ERROR_SIGN, "绛惧悕閿欒01"); } if (StringUtils.isEmpty(appId)) { - return PlatformResult.failure(PlatformCode.ERROR_APPIS, "APPID閿欒01"); + return PlatformResult.failure(PlatformCode.ERROR_APPIS, "APPID閿欒"); } //鏍¢獙appid鏄惁瀛樺湪 if(!sys_appId.equals(appId)){ - return PlatformResult.failure(PlatformCode.ERROR_APPIS, "APPID閿欒02"); + return PlatformResult.failure(PlatformCode.ERROR_APPIS, "APPID鏃犳晥"); } //瑙e瘑RSA @@ -70,7 +70,7 @@ //鎺ュ彛鏈夋晥2绉掗挓 if(System.currentTimeMillis()-date.getTime() > 2000){ - return PlatformResult.failure(PlatformCode.ERROR_INVALID_VISIT, "璁块棶鏃犳晥"); + return PlatformResult.failure(PlatformCode.ERRO_VISIT_OVERTIMR, "璁块棶瓒呮椂"); } return PlatformResult.success(); -- Gitblit v1.8.0