|
@@ -157,6 +157,8 @@ func OpenKolStoreRemove(args map[string]interface{}) (string, error) { |
|
|
fmt.Println(err) |
|
|
fmt.Println(err) |
|
|
return send, err |
|
|
return send, err |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//获取用户数据 |
|
|
func OpenKolUserInfo(args map[string]string) (string, error) { |
|
|
func OpenKolUserInfo(args map[string]string) (string, error) { |
|
|
fmt.Println(args) |
|
|
fmt.Println(args) |
|
|
params := map[string]string{"open_id": args["open_id"]} |
|
|
params := map[string]string{"open_id": args["open_id"]} |
|
@@ -165,3 +167,15 @@ func OpenKolUserInfo(args map[string]string) (string, error) { |
|
|
fmt.Println(err) |
|
|
fmt.Println(err) |
|
|
return send, err |
|
|
return send, err |
|
|
} |
|
|
} |
|
|
|
|
|
func OpenKolUserFans(args map[string]interface{}) (string, error) { |
|
|
|
|
|
/** |
|
|
|
|
|
product_id int64 3450632721376902816 商品ID |
|
|
|
|
|
promotion_id int64 3450632721374033833 推广ID |
|
|
|
|
|
*/ |
|
|
|
|
|
url := "data/external/user/fans/?open_id=" + zhios_third_party_utils.AnyToString(args["open_id"]) + "&date_type=" + zhios_third_party_utils.AnyToString(args["date_type"]) |
|
|
|
|
|
fmt.Println(args) |
|
|
|
|
|
send, err := OpenSendApiGet(url, zhios_third_party_utils.AnyToString(args["acctoken"])) |
|
|
|
|
|
fmt.Println(send) |
|
|
|
|
|
fmt.Println(err) |
|
|
|
|
|
return send, err |
|
|
|
|
|
} |