Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
033e82ffb4
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      hw/api.go

+ 4
- 2
hw/api.go View File

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


Loading…
Cancel
Save