|
@@ -190,6 +190,21 @@ func OpenGetDetailSku(args map[string]string, id int64) md.SkuData { |
|
|
} |
|
|
} |
|
|
return goodsList |
|
|
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) { |
|
|
func OpenStoreDel(args map[string]interface{}) (string, error) { |
|
|
/** |
|
|
/** |
|
|
products []AddStoreProductInfo |
|
|
products []AddStoreProductInfo |
|
|