diff --git a/hw/api.go b/hw/api.go index 6767e92..68f7222 100644 --- a/hw/api.go +++ b/hw/api.go @@ -23,7 +23,7 @@ func HwSend(url string, param map[string]string, secret string) string { 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) param["sign"] = sign for k, v := range param { @@ -41,7 +41,9 @@ func HwSendOrder(url string, param map[string]string, secret string) string { if list == "" { 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 { strMap := zhios_third_party_utils.KsortToStr(param)