lyhzzz 1 년 전
부모
커밋
2c63347ff5
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/main/java/com/fdkankan/manage_jp/controller/ProjectSceneController.java

+ 1 - 2
src/main/java/com/fdkankan/manage_jp/controller/ProjectSceneController.java

@@ -58,12 +58,11 @@ public class ProjectSceneController extends BaseController{
 
     @GetMapping("/getSceneMap/{ciphertext}/{type}")
     public Result getSceneMap(@PathVariable String ciphertext,
-                              @PathVariable Integer type) throws UnsupportedEncodingException {
+                              @PathVariable Integer type) {
         if (StringUtils.isBlank(ciphertext)){
             throw new BusinessException(ResultCode.PARAM_ERROR);
         }
         log.info(ciphertext);
-        ciphertext = URLDecoder.decode(ciphertext,"utf-8");
         log.info("ciphertext:{},type:{}",ciphertext,type);
         String deTxt = RsaUtils.decipher(ciphertext, RsaUtils.privateKey);
         SceneGpsParam param = JSONObject.parseObject(deTxt, SceneGpsParam.class);