huangjiajun 6 dagen geleden
bovenliggende
commit
6e14a408b4
1 gewijzigde bestanden met toevoegingen van 15 en 0 verwijderingen
  1. +15
    -0
      tik_tok/svc_tik_tok_goods.go

+ 15
- 0
tik_tok/svc_tik_tok_goods.go Bestand weergeven

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


Laden…
Annuleren
Opslaan