浏览代码

更新

master
huangjiajun 1年前
父节点
当前提交
005e0ce416
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. +8
    -0
      macao_logistics/macao_logistics.go

+ 8
- 0
macao_logistics/macao_logistics.go 查看文件

@@ -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()


正在加载...
取消
保存