提交 afa4a967 authored 作者: 赵雪如's avatar 赵雪如

针对商品特殊情况 被删除返回错误

上级 088fd810
...@@ -181,8 +181,11 @@ func (s *goodsTmNew) QueryItemDetailWithDivision(ctx context.Context,item string ...@@ -181,8 +181,11 @@ func (s *goodsTmNew) QueryItemDetailWithDivision(ctx context.Context,item string
if result==nil{ if result==nil{
return return
} }
log(ctx,gjson.New(item).MustToJsonString(),gjson.New(result.Body).MustToJsonString(),err)
log(ctx,gjson.New(item).MustToJsonString(),gjson.New(result.Body).MustToJsonString(),err)
if *result.Body.Success==false{
return
} //他们返回报错
_ = gjson.NewWithOptions(result.Body, gjson.Options{ _ = gjson.NewWithOptions(result.Body, gjson.Options{
StrNumber: true, StrNumber: true,
}).Scan(&res) }).Scan(&res)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论