|  |  | 
 |  |  |     @ApiOperation("token解析") | 
 |  |  |     @GetMapping("/water/decodeToken") | 
 |  |  |     public Map<String,Object> decodeToken(@RequestParam String token) { | 
 |  |  |         String token1 =token; | 
 |  |  |         log.info("【安防平台单点登录token解析】================="+token1); | 
 |  |  |         log.info("【安防平台单点登录token解析】================="+token); | 
 |  |  |         int success = Constants.ZERO; | 
 |  |  |         Map<String,Object>  result = new HashMap<>() ; | 
 |  |  |         try { | 
 |  |  |              token = URLEncoder.encode(token1); | 
 |  |  |             HkBaseTokenRequest hkBaseTokenRequest = new HkBaseTokenRequest(); | 
 |  |  |             hkBaseTokenRequest.setToken(token); | 
 |  |  |             result = this.decodeTokenForHk(hkBaseTokenRequest); | 
 |  |  | 
 |  |  |             e.printStackTrace(); | 
 |  |  |             success = Constants.ONE; | 
 |  |  |         }finally { | 
 |  |  |             interfaceLogService.saveInterfaceLog("/hk/api/water/decodeToken", "【安防平台】单点登录token解析",token1, | 
 |  |  |             interfaceLogService.saveInterfaceLog("/hk/api/water/decodeToken", "【安防平台】单点登录token解析",token, | 
 |  |  |                     success, JSONObject.toJSONString(result),Constants.ZERO); | 
 |  |  |         } | 
 |  |  |         return result; | 
 |  |  | 
 |  |  |             result.put("msg","token无效!"); | 
 |  |  |             return result; | 
 |  |  |         } | 
 |  |  |         String userName = null; | 
 |  |  |         try { | 
 |  |  |              userName = DESUtil.verifyHkToken(URLDecoder.decode(hkBaseTokenRequest.getToken(),"UTF-8")); | 
 |  |  |         }catch (Exception e){ | 
 |  |  |         } | 
 |  |  |         String userName = DESUtil.verifyHkToken( redisToken);; | 
 |  |  |         if(StringUtils.isBlank(userName)){ | 
 |  |  |             result.put("code","-1"); | 
 |  |  |             result.put("msg","token参数为空"); |