Browse Source

修改调用方法

master v0.2.1
guzeng 3 years ago
parent
commit
ee60593cbc
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      data.go

+ 2
- 2
data.go View File

@ -14,11 +14,11 @@ func SetResData(data interface{}, res *Params) {
res_data_json, err := json.Marshal(data) res_data_json, err := json.Marshal(data)
if err == nil { 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) 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.Data = proto.String(encryData)
res.Time = proto.String(now_str) res.Time = proto.String(now_str)


Loading…
Cancel
Save