|
@@ -21,7 +21,11 @@ func GoodsCreatePid(args map[string]string) map[string]string { |
|
|
return data |
|
|
return data |
|
|
} |
|
|
} |
|
|
func GoodsConvertUrl(args map[string]string) (map[string]string, string) { |
|
|
func GoodsConvertUrl(args map[string]string) (map[string]string, string) { |
|
|
|
|
|
|
|
|
params := map[string]interface{}{"pid": args["pid"], "external_info": args["external_info"], "product_url": args["product_url"]} |
|
|
params := map[string]interface{}{"pid": args["pid"], "external_info": args["external_info"], "product_url": args["product_url"]} |
|
|
|
|
|
if args["need_qr_code"] == "1" { |
|
|
|
|
|
params["need_qr_code"] = "true" |
|
|
|
|
|
} |
|
|
send, err := Send(args["appkey"], args["appSecret"], "buyin.kolProductShare", params, args["acctoken"]) |
|
|
send, err := Send(args["appkey"], args["appSecret"], "buyin.kolProductShare", params, args["acctoken"]) |
|
|
var data = map[string]string{} |
|
|
var data = map[string]string{} |
|
|
if err != nil { |
|
|
if err != nil { |
|
|