|
@@ -125,6 +125,41 @@ func GetDetailSku(args map[string]string, id int64) md.SkuData { |
|
|
return goodsList |
|
|
return goodsList |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func OpenStoreDel(args map[string]interface{}) (string, error) { |
|
|
|
|
|
/** |
|
|
|
|
|
products []AddStoreProductInfo |
|
|
|
|
|
商品信息,最多20个商品 |
|
|
|
|
|
product_id int64 3450632721376902816 商品ID |
|
|
|
|
|
promotion_id int64 3450632721374033833 推广ID |
|
|
|
|
|
need_hide bool false 是否隐藏(true代表隐藏,false代表显示) |
|
|
|
|
|
pick_extra string fasdfkl 自定义参数,携带到订单(只允许 数字、字母和_,限制长度为20) |
|
|
|
|
|
keep_picksource bool true 是否保留商品链接原有选品来源,默认不保留(加橱窗时默认会生成新的选品来源参数覆盖旧参数,转链的自定义参数也会失效,此时选品来源为当前加橱窗应用),keep_picksource 为 true 时保留原有选品来源 |
|
|
|
|
|
*/ |
|
|
|
|
|
fmt.Println(args) |
|
|
|
|
|
params := map[string]interface{}{"products": args["products"]} |
|
|
|
|
|
send, err := OpenSendApi("alliance/kol/store/remove/?open_id="+zhios_third_party_utils.AnyToString(args["open_id"]), params, zhios_third_party_utils.AnyToString(args["acctoken"])) |
|
|
|
|
|
fmt.Println(send) |
|
|
|
|
|
fmt.Println(err) |
|
|
|
|
|
return send, err |
|
|
|
|
|
} |
|
|
|
|
|
func OpenStoreList(args map[string]interface{}) (string, error) { |
|
|
|
|
|
/** |
|
|
|
|
|
products []AddStoreProductInfo |
|
|
|
|
|
商品信息,最多20个商品 |
|
|
|
|
|
product_id int64 3450632721376902816 商品ID |
|
|
|
|
|
promotion_id int64 3450632721374033833 推广ID |
|
|
|
|
|
need_hide bool false 是否隐藏(true代表隐藏,false代表显示) |
|
|
|
|
|
pick_extra string fasdfkl 自定义参数,携带到订单(只允许 数字、字母和_,限制长度为20) |
|
|
|
|
|
keep_picksource bool true 是否保留商品链接原有选品来源,默认不保留(加橱窗时默认会生成新的选品来源参数覆盖旧参数,转链的自定义参数也会失效,此时选品来源为当前加橱窗应用),keep_picksource 为 true 时保留原有选品来源 |
|
|
|
|
|
*/ |
|
|
|
|
|
fmt.Println(args) |
|
|
|
|
|
params := map[string]interface{}{"page": args["page"], "page_size": args["page_size"]} |
|
|
|
|
|
send, err := OpenSendApi("alliance/kol/store/list/?open_id="+zhios_third_party_utils.AnyToString(args["open_id"]), params, zhios_third_party_utils.AnyToString(args["acctoken"])) |
|
|
|
|
|
fmt.Println(send) |
|
|
|
|
|
fmt.Println(err) |
|
|
|
|
|
return send, err |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//详情 |
|
|
//详情 |
|
|
func GetDetailMore(args map[string]string) *[]TikTokGoods { |
|
|
func GetDetailMore(args map[string]string) *[]TikTokGoods { |
|
|
productIds := strings.Split(args["id"], ",") |
|
|
productIds := strings.Split(args["id"], ",") |
|
|