提交代码

dev-discount
胡锐 3 years ago
parent 839bd268d9
commit defa041e83
  1. 1
      hai-cweb/src/main/java/com/cweb/config/AuthConfig.java
  2. 18
      hai-cweb/src/main/java/com/cweb/controller/HighUserController.java

@ -111,6 +111,7 @@ public class AuthConfig implements WebMvcConfigurer {
.excludePathPatterns("/user/getUnionId") .excludePathPatterns("/user/getUnionId")
.excludePathPatterns("/highUser/setCacheParam") .excludePathPatterns("/highUser/setCacheParam")
.excludePathPatterns("/highUser/getCacheParam") .excludePathPatterns("/highUser/getCacheParam")
.excludePathPatterns("/highUser/delCacheParam")
.excludePathPatterns("/order/orderToH5Pay") .excludePathPatterns("/order/orderToH5Pay")
.excludePathPatterns("/order/orderToPay") .excludePathPatterns("/order/orderToPay")
.excludePathPatterns("/test/*") .excludePathPatterns("/test/*")

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

Loading…
Cancel
Save