|
@@ -62,11 +62,9 @@ public class SignVerificationAspect {
|
|
|
}
|
|
|
|
|
|
//通过appid查询私钥
|
|
|
- Instant now = Instant.now();
|
|
|
- long epochSecond = now.getEpochSecond();
|
|
|
JSONObject playload = new JSONObject();
|
|
|
playload.put("appId", ucenterAppId);
|
|
|
- playload.put("timestamp", epochSecond);
|
|
|
+ playload.put("timestamp", System.currentTimeMillis());
|
|
|
String ucenterSign = RsaUtils.encipher(playload.toJSONString(), publicKey);
|
|
|
Map<String, String> headerMap = new HashMap<>();
|
|
|
headerMap.put("sign", ucenterSign);
|