Commit 3e48025c by hcy

自营attrs 兼容

parent 5985620d
Showing with 3 additions and 7 deletions
......@@ -17,7 +17,8 @@ type ZiyingService struct {
}
/*
自营数据详情
自营数据详情
查询商品详情(自营或者联营)
@doc http://192.168.2.232:3000/project/128/interface/api/649
......@@ -169,12 +170,7 @@ func (qs *ZiyingService) ZyGoodsDetail(ctx *gin.Context, goodsIds []string, ch c
A.Set("saler_atio", "") //
}
if len(attrs) == 0 {
A.Set("attrs", "") //属性值
} else {
A.Set("attrs", attrs) //
}
A.Set("attrs", attrs) //
A.Set("cost", gjson.Get(info, "cost").String()) //
A.Set("new_cost", gjson.Get(info, "new_cost").String()) //
A.Set("supplier_stock", gjson.Get(info, "supplier_stock").Int()) //
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment