|
|
@@ -13,7 +13,9 @@ func GetToken(params map[string]interface{}) string { |
|
|
|
//} |
|
|
|
//7c2f6cbd480a96f1aa69509f9dd65462 |
|
|
|
send, err := Send("/jyb/admin/login/password", params, "") |
|
|
|
fmt.Println("macap1:" + send) |
|
|
|
if err != nil { |
|
|
|
fmt.Println("macap1:" + err.Error()) |
|
|
|
return "" |
|
|
|
} |
|
|
|
return gjson.Get(send, "data.token").String() |
|
|
@@ -21,7 +23,9 @@ func GetToken(params map[string]interface{}) string { |
|
|
|
|
|
|
|
func GetGoods(params map[string]interface{}, acctoken string) string { |
|
|
|
send, err := SendGet("/admin/goods/detailed/list", params, acctoken) |
|
|
|
fmt.Println("macap1:" + send) |
|
|
|
if err != nil { |
|
|
|
fmt.Println("macap1:" + err.Error()) |
|
|
|
return "" |
|
|
|
} |
|
|
|
return gjson.Get(send, "data.data").String() |
|
|
@@ -37,7 +41,9 @@ func GetStore(params map[string]interface{}, acctoken string) string { |
|
|
|
} |
|
|
|
func GetOrder(params map[string]interface{}, acctoken string) string { |
|
|
|
send, err := SendGet("/jyb/order/delivery/list", params, acctoken) |
|
|
|
fmt.Println("macap1:" + send) |
|
|
|
if err != nil { |
|
|
|
fmt.Println("macap1:" + err.Error()) |
|
|
|
return "" |
|
|
|
} |
|
|
|
return gjson.Get(send, "data.data").String() |
|
|
@@ -51,7 +57,9 @@ func RegUser(params map[string]interface{}) string { |
|
|
|
|
|
|
|
func GetAddress(params map[string]interface{}, acctoken string) string { |
|
|
|
send, err := SendGet("/admin/user/template/address", params, acctoken) |
|
|
|
fmt.Println("macap1:" + send) |
|
|
|
if err != nil { |
|
|
|
fmt.Println("macap1:" + err.Error()) |
|
|
|
return "" |
|
|
|
} |
|
|
|
return gjson.Get(send, "data").String() |
|
|
|