上传用户时间校验
This commit is contained in:
parent
c2a010c9f9
commit
b2bd909b91
@ -176,7 +176,7 @@ func (this *Agent) decodeUserData(msg *pb.UserMessage) (code pb.ErrorCode, err e
|
||||
this.gateway.Errorf("base64 decode err %v", err)
|
||||
return pb.ErrorCode_DecodeError, nil
|
||||
}
|
||||
now := configure.Now().Unix()
|
||||
now := time.Now().Unix()
|
||||
jsonRet := gjson.Parse(string(dec))
|
||||
timestamp := jsonRet.Get("timestamp").Int()
|
||||
//秘钥30秒失效
|
||||
|
Loading…
Reference in New Issue
Block a user