|
@@ -65,7 +65,16 @@ func LiveCreatePid(args map[string]string) map[string]string { |
|
|
} |
|
|
} |
|
|
func LiveConvertUrl(args map[string]string) map[string]string { |
|
|
func LiveConvertUrl(args map[string]string) map[string]string { |
|
|
|
|
|
|
|
|
params := map[string]interface{}{"pid_info": map[string]interface{}{"pid": args["pid"], "external_info": args["external_info"]}, "open_id": args["open_id"]} |
|
|
|
|
|
|
|
|
params := map[string]interface{}{"pid_info": map[string]interface{}{"pid": args["pid"], "external_info": args["external_info"]}, "buyin_id": args["open_id"]} |
|
|
|
|
|
if args["need_qr_code"] == "1" { |
|
|
|
|
|
params["need_qr_code"] = "true" |
|
|
|
|
|
} |
|
|
|
|
|
if args["dy_code"] != "" { |
|
|
|
|
|
params["dy_code"] = args["dy_code"] |
|
|
|
|
|
} |
|
|
|
|
|
if args["product_id"] != "" { |
|
|
|
|
|
params["product_id"] = args["product_id"] |
|
|
|
|
|
} |
|
|
send, err := Send(args["appkey"], args["appSecret"], "buyin.instituteLiveShare", params, args["acctoken"]) |
|
|
send, err := Send(args["appkey"], args["appSecret"], "buyin.instituteLiveShare", params, args["acctoken"]) |
|
|
fmt.Println(send) |
|
|
fmt.Println(send) |
|
|
var data = map[string]string{} |
|
|
var data = map[string]string{} |
|
|