Compare commits

..

2 Commits

Author SHA1 Message Date
姜玉琦 785794a948 提交代码 2024-01-14 17:20:14 +08:00
姜玉琦 c8230c6b54 提交代码 2024-01-14 17:17:31 +08:00
2 changed files with 5 additions and 6 deletions

View File

@ -65,7 +65,7 @@ public class TokenReqVo {
} }
/** /**
* * [3]
*/ */
private Boolean checkTimestamp() { private Boolean checkTimestamp() {
boolean timestampFlag = false; boolean timestampFlag = false;

View File

@ -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;