| | |
| | | * @author
|
| | | * @desc 返回数据加密
|
| | | */
|
| | | @Slf4j
|
| | | @ControllerAdvice
|
| | | public class MyResponseBodyAdvice implements ResponseBodyAdvice {
|
| | |
|
| | |
| | | String authKey = serverHttpRequest.getHeaders().get("authKey").get(0);
|
| | | String s = JSONUtil.toJsonStr(body);
|
| | | if (!url.contains("/admin")) {
|
| | | log.info("这是进入了body");
|
| | | Object versionService = SpringUtil.getBean("versionService");
|
| | | log.info("这是进入了body:{}", versionService);
|
| | | VersionInfo versionInfo = ReflectUtil.invoke(versionService, "find");
|
| | | JSONObject jsonObject = JSONUtil.parseObj(s);
|
| | | if (versionInfo != null) {
|