| | |
| | | import org.yeshi.utils.JsonUtil;
|
| | |
|
| | | import com.yeshi.fanli.entity.common.AdminUser;
|
| | | import com.yeshi.fanli.log.LogHelper;
|
| | | import com.yeshi.fanli.service.AdminUserService;
|
| | | import com.yeshi.fanli.util.AESUtil;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | |
| | | @Resource
|
| | | private AdminUserService adminUserService;
|
| | |
|
| | | @Around("execution(public * com.yeshi.fanli.controller.admin.*.*(..))")
|
| | | // @Around("execution(public * com.yeshi.fanli.controller.admin.*.*(..))")
|
| | | public Object verifyLoginState(ProceedingJoinPoint joinPoint) throws IOException {
|
| | |
|
| | | Signature signature = joinPoint.getSignature();
|
| | |
| | | // 邮件H5来源的不判断是否登录
|
| | | if ("emailh5".equalsIgnoreCase(from)) {
|
| | | String callback = request.getParameter("callback");
|
| | | String signAES = URLDecoder.decode(request.getParameter("sign"),"UTF-8");
|
| | | String signAES = request.getParameter("sign");
|
| | | if (signAES != null && signAES.contains("%"))
|
| | | signAES = URLDecoder.decode(request.getParameter("sign"), "UTF-8");
|
| | | String sign = AESUtil.decrypt(signAES, Constant.ADMINH5_AESKEY);
|
| | | if (!StringUtil.isNullOrEmpty(sign)) {
|
| | | LogHelper.error("H5审核签名:" + sign);
|
| | | JSONObject json = JSONObject.fromObject(sign);
|
| | | long time = json.optLong("timeStamp");
|
| | | long adminId = json.optLong("adminId");
|