|
@@ -23,7 +23,7 @@ func HwSend(url string, param map[string]string, secret string) string { |
|
|
return url |
|
|
return url |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func HwSendOrder(url string, param map[string]string, secret string) string { |
|
|
|
|
|
|
|
|
func HwSendOrder(url string, param map[string]string, secret string) (string, string) { |
|
|
sign := getSign(param, secret) |
|
|
sign := getSign(param, secret) |
|
|
param["sign"] = sign |
|
|
param["sign"] = sign |
|
|
for k, v := range param { |
|
|
for k, v := range param { |
|
@@ -41,7 +41,9 @@ func HwSendOrder(url string, param map[string]string, secret string) string { |
|
|
if list == "" { |
|
|
if list == "" { |
|
|
list = gjson.Get(string(data), "data.order").String() |
|
|
list = gjson.Get(string(data), "data.order").String() |
|
|
} |
|
|
} |
|
|
return list |
|
|
|
|
|
|
|
|
taskList := gjson.Get(string(data), "data.take_list").String() |
|
|
|
|
|
|
|
|
|
|
|
return list, taskList |
|
|
} |
|
|
} |
|
|
func getSign(param map[string]string, secret string) string { |
|
|
func getSign(param map[string]string, secret string) string { |
|
|
strMap := zhios_third_party_utils.KsortToStr(param) |
|
|
strMap := zhios_third_party_utils.KsortToStr(param) |
|
|