| | |
| | | package com.yeshi.fanli.aspect;
|
| | |
|
| | | import java.io.IOException;
|
| | | import java.io.PrintWriter;
|
| | | import java.util.ArrayList;
|
| | | import java.util.Arrays;
|
| | |
| | |
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | import com.yeshi.fanli.util.SystemInfoUtil;
|
| | | import org.aspectj.lang.ProceedingJoinPoint;
|
| | | import org.aspectj.lang.annotation.Around;
|
| | | import org.aspectj.lang.annotation.Aspect;
|
| | |
| | | import com.yeshi.fanli.util.ThreadUtil;
|
| | |
|
| | | import net.sf.json.JSONObject;
|
| | | import org.yeshi.utils.SystemUtil;
|
| | |
|
| | | //客户端接口签名验证
|
| | | @Component
|
| | |
| | | out.close();
|
| | | return null;
|
| | | }
|
| | |
|
| | | if(acceptData!=null)
|
| | | acceptData.setSystem(SystemInfoUtil.getSystem(acceptData));
|
| | |
|
| | | final String url = request.getRequestURI();
|
| | | @SuppressWarnings("unchecked")
|
| | |
| | | List<String> list = new ArrayList<>();
|
| | | for (Iterator<String> its = json.keySet().iterator(); its.hasNext();) {
|
| | | String key = its.next();
|
| | | list.add(key + "=" + json.optString(key));
|
| | | if (!key.equalsIgnoreCase("sign"))
|
| | | list.add(key + "=" + json.optString(key));
|
| | | }
|
| | | Collections.sort(list);
|
| | | String str = "";
|