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);