| | |
| | | package cc.mrbird.febs.common.advise; |
| | | |
| | | import cc.mrbird.febs.common.contants.AppContants; |
| | | import cn.hutool.crypto.SecureUtil; |
| | | import cn.hutool.crypto.asymmetric.KeyType; |
| | | import cn.hutool.crypto.asymmetric.RSA; |
| | | import com.alibaba.fastjson.JSONObject; |
| | |
| | | |
| | | @Override |
| | | public Object beforeBodyWrite(Object o, MethodParameter methodParameter, MediaType mediaType, Class aClass, ServerHttpRequest serverHttpRequest, ServerHttpResponse serverHttpResponse) { |
| | | if (!AppContants.ENCRYPT_METHOD.contains(methodParameter.getMethod().getName()) || isDebug) { |
| | | String name = methodParameter.getMethod().getName(); |
| | | if("findPlatformBannerList".equals(name)){ |
| | | return o; |
| | | } |
| | | if("newsDetails".equals(name)){ |
| | | return o; |
| | | } |
| | | if("findNews".equals(name)){ |
| | | return o; |
| | | } |
| | | if("findNewsInPage".equals(name)){ |
| | | return o; |
| | | } |
| | | if("findNewsInfoCategory".equals(name)){ |
| | | return o; |
| | | } |
| | | if (!AppContants.ENCRYPT_METHOD.contains(name)) { |
| | | return o; |
| | | } |
| | | |