|
@ -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) |
|
|