diff --git a/hai-cweb/src/main/java/com/cweb/config/AuthConfig.java b/hai-cweb/src/main/java/com/cweb/config/AuthConfig.java index 78cfb369..c119e8c6 100644 --- a/hai-cweb/src/main/java/com/cweb/config/AuthConfig.java +++ b/hai-cweb/src/main/java/com/cweb/config/AuthConfig.java @@ -111,6 +111,7 @@ public class AuthConfig implements WebMvcConfigurer { .excludePathPatterns("/user/getUnionId") .excludePathPatterns("/highUser/setCacheParam") .excludePathPatterns("/highUser/getCacheParam") + .excludePathPatterns("/highUser/delCacheParam") .excludePathPatterns("/order/orderToH5Pay") .excludePathPatterns("/order/orderToPay") .excludePathPatterns("/test/*") diff --git a/hai-cweb/src/main/java/com/cweb/controller/HighUserController.java b/hai-cweb/src/main/java/com/cweb/controller/HighUserController.java index 7d3c9ee1..45d7cfe2 100644 --- a/hai-cweb/src/main/java/com/cweb/controller/HighUserController.java +++ b/hai-cweb/src/main/java/com/cweb/controller/HighUserController.java @@ -241,5 +241,23 @@ public class HighUserController { } } + @RequestMapping(value="/delCacheParam",method = RequestMethod.GET) + @ResponseBody + @ApiOperation(value = "删除设置用户参数") + public ResponseData delCacheParam(@RequestParam(name = "key", required = true) String key) { + try { + + Object param = redisUtil.hget("PROVISIONAL_CACHE_PARAM", key); + if (param != null) { + redisUtil.hdel("PROVISIONAL_CACHE_PARAM", key); + } + return ResponseMsgUtil.success("操作成功"); + + } catch (Exception e) { + log.error("CommonController --> delCacheParam() error!", e); + return ResponseMsgUtil.exception(e); + } + } + }