Compare commits
No commits in common. "785794a948b631cf61650901a2525703b701f1a2" and "567fd3f23723f34ce02b8049ddf0d7a08a69f015" have entirely different histories.
785794a948
...
567fd3f237
|
@ -65,7 +65,7 @@ public class TokenReqVo {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 效验时间签名[3分钟有效期]
|
* 效验时间签名
|
||||||
*/
|
*/
|
||||||
private Boolean checkTimestamp() {
|
private Boolean checkTimestamp() {
|
||||||
boolean timestampFlag = false;
|
boolean timestampFlag = false;
|
||||||
|
|
|
@ -30,9 +30,10 @@ public class LabourSignetVo {
|
||||||
private String sign;
|
private String sign;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 推送数据 明文参数
|
* 数据
|
||||||
|
* 明文参数
|
||||||
*/
|
*/
|
||||||
@NotBlank(message = "推送数据不能为空")
|
@NotBlank(message = "签名不能为空")
|
||||||
private String data;
|
private String data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -67,12 +68,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 < 1000 * 60 * 30) {
|
if (timePoor < 10000 * 60 * 3) {
|
||||||
timestampFlag = true;
|
timestampFlag = true;
|
||||||
}
|
}
|
||||||
return timestampFlag;
|
return timestampFlag;
|
||||||
|
|
Loading…
Reference in New Issue