提交 47048fef authored 作者: 屈传平's avatar 屈传平

Merge branch 'featrue/hdh'

...@@ -35,7 +35,7 @@ func post(ctx context.Context, method string, req interface{}) (res string, err ...@@ -35,7 +35,7 @@ func post(ctx context.Context, method string, req interface{}) (res string, err
Start := gtime.TimestampMilli() Start := gtime.TimestampMilli()
reqMap := gconv.Map(req) reqMap := gconv.Map(req)
reqMap["appId"] = server.AppId reqMap["appId"] = server.AppId
param := gjson.New(req) param := gjson.New(reqMap)
Url := server.ApiUrl + method Url := server.ApiUrl + method
Request := g.Client() Request := g.Client()
Request.SetHeader("Content-Type", "application/json") Request.SetHeader("Content-Type", "application/json")
......
...@@ -31,7 +31,7 @@ type CategoryListRes struct { ...@@ -31,7 +31,7 @@ type CategoryListRes struct {
//获取分类列表 //获取分类列表
func GetCategoryList(ctx context.Context) (res *CategoryListRes, err error) { func GetCategoryList(ctx context.Context) (res *CategoryListRes, err error) {
params := g.Map{} params := g.Map{}
result, err := post(ctx, "/item/get_item_list.do", params) result, err := post(ctx, "/cate/get_category_list.do", params)
if nil != err { if nil != err {
return return
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论