Compare commits
2 Commits
567fd3f237
...
785794a948
Author | SHA1 | Date |
---|---|---|
|
785794a948 | |
|
c8230c6b54 |
|
@ -65,7 +65,7 @@ public class TokenReqVo {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 效验时间签名
|
* 效验时间签名[3分钟有效期]
|
||||||
*/
|
*/
|
||||||
private Boolean checkTimestamp() {
|
private Boolean checkTimestamp() {
|
||||||
boolean timestampFlag = false;
|
boolean timestampFlag = false;
|
||||||
|
|
|
@ -30,10 +30,9 @@ public class LabourSignetVo {
|
||||||
private String sign;
|
private String sign;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据
|
* 推送数据 明文参数
|
||||||
* 明文参数
|
|
||||||
*/
|
*/
|
||||||
@NotBlank(message = "签名不能为空")
|
@NotBlank(message = "推送数据不能为空")
|
||||||
private String data;
|
private String data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -68,12 +67,12 @@ public class LabourSignetVo {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 效验时间签名
|
* 效验时间签名[30分钟有效期]
|
||||||
*/
|
*/
|
||||||
public Boolean checkTimestamp() {
|
public Boolean checkTimestamp() {
|
||||||
boolean timestampFlag = false;
|
boolean timestampFlag = false;
|
||||||
long timePoor = Math.abs(timestamp - System.currentTimeMillis());
|
long timePoor = Math.abs(timestamp - System.currentTimeMillis());
|
||||||
if (timePoor < 10000 * 60 * 3) {
|
if (timePoor < 1000 * 60 * 30) {
|
||||||
timestampFlag = true;
|
timestampFlag = true;
|
||||||
}
|
}
|
||||||
return timestampFlag;
|
return timestampFlag;
|
||||||
|
|
Loading…
Reference in New Issue