From b2bd909b91bc3083290f13e265e13edf13e1a13c Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Wed, 10 May 2023 15:33:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=94=A8=E6=88=B7=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/gateway/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gateway/agent.go b/modules/gateway/agent.go index a4fd8a6d9..d9e8ba4c6 100644 --- a/modules/gateway/agent.go +++ b/modules/gateway/agent.go @@ -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秒失效