From e5d341086b634f9ac0345b576e6497f978a53941 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 30 十一月 2022 10:38:29 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/controller/data/MetaController.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/lf/server/controller/data/MetaController.java b/src/main/java/com/lf/server/controller/data/MetaController.java index ac009c7..8d2e07f 100644 --- a/src/main/java/com/lf/server/controller/data/MetaController.java +++ b/src/main/java/com/lf/server/controller/data/MetaController.java @@ -43,6 +43,8 @@ @Autowired DownloadService downloadService; + private final static String EQ = "="; + @SysLog() @ApiOperation(value = "鍒嗛〉鏌ヨ骞惰繑鍥炶褰曟暟") @ApiImplicitParams({ @@ -310,7 +312,7 @@ if (StringHelper.isEmpty(guid) || StringHelper.isEmpty(pwd)) { return fail("鏂囦欢ID鍜屽瘑鐮佷笉鑳戒负绌�", null); } - if (!pwd.endsWith("=")) { + if (!pwd.endsWith(EQ)) { pwd = URLDecoder.decode(pwd, StandardCharsets.UTF_8.name()); } @@ -349,7 +351,7 @@ if (StringHelper.isEmpty(guid) || StringHelper.isEmpty(pwd)) { WebHelper.writeInfo(HttpStatus.BAD_REQUEST, "鏂囦欢ID鍜屽瘑鐮佷笉鑳戒负绌�", res); } - if (!pwd.endsWith("=")) { + if (!pwd.endsWith(EQ)) { pwd = URLDecoder.decode(pwd, StandardCharsets.UTF_8.name()); } -- Gitblit v1.9.3