From ee60593cbc2be890311eacafa6f56b3acbdaaa17 Mon Sep 17 00:00:00 2001 From: guzeng Date: Sat, 21 Aug 2021 13:54:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B0=83=E7=94=A8=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data.go b/data.go index d17071f..2420242 100644 --- a/data.go +++ b/data.go @@ -14,11 +14,11 @@ func SetResData(data interface{}, res *Params) { res_data_json, err := json.Marshal(data) if err == nil { - encryData := crypter.DesEn(string(res_data_json), supplierrpc.DES_KEY) + encryData := crypter.DesEn(string(res_data_json), DES_KEY) now_str := strconv.FormatInt(time.Now().Unix(), 10) - res_sign := supplierrpc.Sign(encryData, now_str) + res_sign := Sign(encryData, now_str) res.Data = proto.String(encryData) res.Time = proto.String(now_str)