lyhzzz 1 year ago
parent
commit
2c63347ff5

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