huangjiajun 1 月之前
父節點
當前提交
6e14a408b4
共有 1 個檔案被更改,包括 15 行新增0 行删除
  1. +15
    -0
      tik_tok/svc_tik_tok_goods.go

+ 15
- 0
tik_tok/svc_tik_tok_goods.go 查看文件

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


Loading…
取消
儲存