|
|
@@ -134,7 +134,7 @@ public class AppIrsManage { |
|
|
|
long timestamp = System.currentTimeMillis(); |
|
|
|
String areaCode = project.getAreaCode(); |
|
|
|
String projectName = project.getProjectName(); |
|
|
|
String requestSecret = RefreshKeyUtil.getRequestSecret(pushAppKey, pushAppScret); |
|
|
|
String requestSecret = RefreshKeyUtil.getRequestSecret(pushAppKey, pushAppScret,timestamp); |
|
|
|
String capCode = CryptUtils.encryptHMAC(timestamp + areaCode, "bcb4fc0f517fc168ee543fcf4d231f3b"); |
|
|
|
String capTime = String.valueOf(timestamp); |
|
|
|
String sign = CryptUtils.MD5Encode(pushAppKey + requestSecret + timestamp); |
|
|
@@ -195,7 +195,7 @@ public class AppIrsManage { |
|
|
|
public JSONObject searchApp(ApiApplyDTO apply) throws NoSuchAlgorithmException { |
|
|
|
long timestamp = System.currentTimeMillis(); |
|
|
|
String appCode = apply.getAppId(); |
|
|
|
String requestSecret = RefreshKeyUtil.getRequestSecret(searchAppKey, searchAppScret); |
|
|
|
String requestSecret = RefreshKeyUtil.getRequestSecret(searchAppKey, searchAppScret,timestamp); |
|
|
|
String sign = CryptUtils.MD5Encode(searchAppKey + requestSecret + timestamp); |
|
|
|
String url = searchUrl + "?requestTime=" + timestamp + "&sign=" + sign + |
|
|
|
"&appKey=" + searchAppKey + "&" + |
|
|
@@ -231,7 +231,7 @@ public class AppIrsManage { |
|
|
|
long timestamp = System.currentTimeMillis(); |
|
|
|
String areaCode = StringUtils.isNotBlank(apply.getAreaCode()) ? |
|
|
|
convertAreaCode(apply.getAreaCode()) : null; |
|
|
|
String requestSecret = RefreshKeyUtil.getRequestSecret(searchAppKey, searchAppScret); |
|
|
|
String requestSecret = RefreshKeyUtil.getRequestSecret(searchAppKey, searchAppScret,timestamp); |
|
|
|
String sign = CryptUtils.MD5Encode(searchAppKey + requestSecret + timestamp); |
|
|
|
String url = searchUrl + "?requestTime=" + timestamp + "&sign=" + sign + |
|
|
|
"&appKey=" + searchAppKey + "&pageSize=1000&" + |
|
|
|