huangjiajun pirms 6 dienas
vecāks
revīzija
6e14a408b4
1 mainītis faili ar 15 papildinājumiem un 0 dzēšanām
  1. +15
    -0
      tik_tok/svc_tik_tok_goods.go

+ 15
- 0
tik_tok/svc_tik_tok_goods.go Parādīt failu

@@ -190,6 +190,21 @@ func OpenGetDetailSku(args map[string]string, id int64) md.SkuData {
}
return goodsList
}

func OpenKolGetDetailSku(args map[string]string, id int64) md.SkuData {
params := map[string]interface{}{"product_id": id}
send, err := OpenSendApi("alliance/product/kol/skus/?open_id="+zhios_third_party_utils.AnyToString(args["open_id"]), params, zhios_third_party_utils.AnyToString(args["acctoken"]))
var goodsList = md.SkuData{}
product := gjson.Get(send, "data").String()
if err != nil || product == "" {
return goodsList
}
respstr := strings.ReplaceAll(string(product), "\"pictures\":[]", "\"pictures\":{}")
if err = json.Unmarshal([]byte(respstr), &goodsList); err != nil {
return goodsList
}
return goodsList
}
func OpenStoreDel(args map[string]interface{}) (string, error) {
/**
products []AddStoreProductInfo


Notiek ielāde…
Atcelt
Saglabāt