This commit is contained in:
laodaming 2023-07-25 18:21:30 +08:00
parent b0f598af68
commit 932ee1a578

View File

@ -36,7 +36,7 @@ func RenderNotifyHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
})
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{
Code: basic.CodeRequestParamsErr.Code,
Message: "invalid param,time is expired",