Commit 82d26dce authored by szh's avatar szh

update

parent 4c579f13
......@@ -266,7 +266,7 @@ func (courseUsersApi *CourseUsersApi) MetaMaskLogin(c *gin.Context) {
response.FailWithMessage(err.Error(), c)
return
}
if time.Now().Unix()/1000 - 1800 > signTime {
if time.Now().Unix() - 1800 > signTime/1000 {
response.FailWithMessage("签名时间已过期,请重新签名", c)
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment