|
|
@@ -5,8 +5,8 @@ import "fmt" |
|
|
|
/*** |
|
|
|
查询用户信息 |
|
|
|
*/ |
|
|
|
func GetUser(apiKey string, param map[string]string) (string, error) { |
|
|
|
s, err := send("index/user", apiKey, param) |
|
|
|
func GetUser(url, apiKey string, param map[string]string) (string, error) { |
|
|
|
s, err := send(url, "index/user", apiKey, param) |
|
|
|
fmt.Println(s) |
|
|
|
fmt.Println(err) |
|
|
|
return s, err |
|
|
@@ -17,8 +17,8 @@ func GetUser(apiKey string, param map[string]string) (string, error) { |
|
|
|
type int 1 false 产品类型ID,非必须 |
|
|
|
cate_id int 10 false 分类ID,非必须 |
|
|
|
*/ |
|
|
|
func GetProduct(apiKey string, param map[string]string) (string, error) { |
|
|
|
s, err := send("index/product", apiKey, param) |
|
|
|
func GetProduct(url, apiKey string, param map[string]string) (string, error) { |
|
|
|
s, err := send(url, "index/product", apiKey, param) |
|
|
|
fmt.Println(s) |
|
|
|
fmt.Println(err) |
|
|
|
return s, err |
|
|
@@ -28,8 +28,8 @@ func GetProduct(apiKey string, param map[string]string) (string, error) { |
|
|
|
产品ID查询【新增】 |
|
|
|
id int 1 true 产品ID |
|
|
|
*/ |
|
|
|
func GetPrice(apiKey string, param map[string]string) (string, error) { |
|
|
|
s, err := send("index/price", apiKey, param) |
|
|
|
func GetPrice(url, apiKey string, param map[string]string) (string, error) { |
|
|
|
s, err := send(url, "index/price", apiKey, param) |
|
|
|
fmt.Println(s) |
|
|
|
fmt.Println(err) |
|
|
|
return s, err |
|
|
@@ -38,8 +38,8 @@ func GetPrice(apiKey string, param map[string]string) (string, error) { |
|
|
|
/*** |
|
|
|
获取产品类型和产品分类 |
|
|
|
*/ |
|
|
|
func GetProductCate(apiKey string, param map[string]string) (string, error) { |
|
|
|
s, err := send("index/typecate", apiKey, param) |
|
|
|
func GetProductCate(url, apiKey string, param map[string]string) (string, error) { |
|
|
|
s, err := send(url, "index/typecate", apiKey, param) |
|
|
|
fmt.Println(s) |
|
|
|
fmt.Println(err) |
|
|
|
return s, err |
|
|
@@ -49,8 +49,8 @@ func GetProductCate(apiKey string, param map[string]string) (string, error) { |
|
|
|
自发查询订单状态 |
|
|
|
out_trade_nums string CZH668877,CZH9988666 true 商户订单号;多个用英文,分割 |
|
|
|
*/ |
|
|
|
func GetOrder(apiKey string, param map[string]string) (string, error) { |
|
|
|
s, err := send("index/check", apiKey, param) |
|
|
|
func GetOrder(url, apiKey string, param map[string]string) (string, error) { |
|
|
|
s, err := send(url, "index/check", apiKey, param) |
|
|
|
fmt.Println(s) |
|
|
|
fmt.Println(err) |
|
|
|
return s, err |
|
|
@@ -59,8 +59,8 @@ func GetOrder(apiKey string, param map[string]string) (string, error) { |
|
|
|
/*** |
|
|
|
电费支持地区查询 |
|
|
|
*/ |
|
|
|
func GetArea(apiKey string, param map[string]string) (string, error) { |
|
|
|
s, err := send("index/elecity", apiKey, param) |
|
|
|
func GetArea(url, apiKey string, param map[string]string) (string, error) { |
|
|
|
s, err := send(url, "index/elecity", apiKey, param) |
|
|
|
fmt.Println(s) |
|
|
|
fmt.Println(err) |
|
|
|
return s, err |
|
|
@@ -83,8 +83,8 @@ param1 string * false 扩展参数,后台查看提交的产品类目是否需 |
|
|
|
param2 string * false 扩展参数,后台查看提交的产品类目是否需要提交此参数 |
|
|
|
param3 string * false 扩展参数,后台查看提交的产品类目是否需要提交此参数 |
|
|
|
*/ |
|
|
|
func Pay(apiKey string, param map[string]string) (string, error) { |
|
|
|
s, err := send("index/recharge", apiKey, param) |
|
|
|
func Pay(url, apiKey string, param map[string]string) (string, error) { |
|
|
|
s, err := send(url, "index/recharge", apiKey, param) |
|
|
|
fmt.Println(s) |
|
|
|
fmt.Println(err) |
|
|
|
return s, err |
|
|
|