|
@@ -33,7 +33,7 @@ public class SignInterceptor implements Interceptor<JSONObject> {
|
|
|
log.info("on invoke method sign");
|
|
|
JSONObject playload = new JSONObject();
|
|
|
Instant now = Instant.now();
|
|
|
- long epochSecond = now.getEpochSecond();
|
|
|
+ long epochSecond =System.currentTimeMillis();
|
|
|
playload.put("appId", appid);
|
|
|
playload.put("timestamp", epochSecond);
|
|
|
request.addHeader("sign", RsaUtils.encipher(playload.toJSONString(), publicKey)); // 添加Header
|