|
|
|
@ -112,17 +112,17 @@ public class ChiefController {
|
|
|
|
|
//请求的地址
|
|
|
|
|
StringBuilder url = new StringBuilder("http://qyt.sipac.gov.cn/sipsg-enterprise-mobile-manage/#/loginVerify?");
|
|
|
|
|
//当前时间的时间戳
|
|
|
|
|
long timespan = System.currentTimeMillis();
|
|
|
|
|
String timespan = Long.toString(System.currentTimeMillis());
|
|
|
|
|
UserInfoRequestDTO req = new UserInfoRequestDTO();
|
|
|
|
|
req.setClientId(clientId);
|
|
|
|
|
req.setUserToken(userToken);
|
|
|
|
|
String signature = Base64.encode(HMAC256Config.HmacSHA256(JSONUtil.parse(req).toString() + timespan, clientSecret));
|
|
|
|
|
url.append("signature=").append(signature);
|
|
|
|
|
url.append("&clientid=").append(clientId);
|
|
|
|
|
url.append("&userToken=").append(userToken);
|
|
|
|
|
url.append("×pan=").append(timespan);
|
|
|
|
|
url.append("&userToken=").append(userToken);
|
|
|
|
|
url.append("&gourl=")
|
|
|
|
|
.append(URLEncoder.encode("https://qyt.sipac.gov.cn/sipsg-enterprise-mobile-manage/#/workPlat/search/enterprise/detail?id="+code,"UTF-8"));
|
|
|
|
|
url.append("&clientid=").append(clientId);
|
|
|
|
|
return AjaxResult.success(url.toString());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|