| | |
| | | import com.xzx.gc.common.utils.SecurityUtil;
|
| | | import com.xzx.gc.common.utils.SpringUtil;
|
| | | import com.xzx.gc.entity.VersionInfo;
|
| | | import lombok.extern.slf4j.Slf4j;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.core.MethodParameter;
|
| | | import org.springframework.http.MediaType;
|
| | |
| | | * @author
|
| | | * @desc 返回数据加密
|
| | | */
|
| | | @Slf4j
|
| | | @ControllerAdvice
|
| | | public class MyResponseBodyAdvice implements ResponseBodyAdvice {
|
| | |
|
| | |
| | | Object versionService = SpringUtil.getBean("versionService");
|
| | | VersionInfo versionInfo = ReflectUtil.invoke(versionService, "find");
|
| | | JSONObject jsonObject = JSONUtil.parseObj(s);
|
| | | log.info("----->{}", s);
|
| | | if (versionInfo != null) {
|
| | | jsonObject.put("updateFlag", Convert.toStr(versionInfo.getUpdateFlag()));
|
| | | jsonObject.put("forceUpdateFlag", Convert.toStr(versionInfo.getForceUpdateFlag()));
|