fix
This commit is contained in:
parent
b0f598af68
commit
932ee1a578
|
@ -36,7 +36,7 @@ func RenderNotifyHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if time.Now().Unix()-120 > req.Time {
|
if time.Now().Unix()-120 > req.Time || req.Time > time.Now().Unix() {
|
||||||
httpx.OkJsonCtx(r.Context(), w, basic.Response{
|
httpx.OkJsonCtx(r.Context(), w, basic.Response{
|
||||||
Code: basic.CodeRequestParamsErr.Code,
|
Code: basic.CodeRequestParamsErr.Code,
|
||||||
Message: "invalid param,time is expired",
|
Message: "invalid param,time is expired",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user