结构修改
This commit is contained in:
parent
d0dae2d43d
commit
f2d64b0a4e
|
@ -3,6 +3,7 @@ package tools
|
||||||
import (
|
import (
|
||||||
"ai_scheduler/internal/config"
|
"ai_scheduler/internal/config"
|
||||||
"ai_scheduler/internal/entitys"
|
"ai_scheduler/internal/entitys"
|
||||||
|
"ai_scheduler/internal/pkg"
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -167,7 +168,7 @@ func (z ZltxProductTool) getZltxProduct(body *ZltxProductRequest, requireData *e
|
||||||
return fmt.Errorf("解析商品数据失败:%w", err)
|
return fmt.Errorf("解析商品数据失败:%w", err)
|
||||||
}
|
}
|
||||||
if resp.Code != 200 {
|
if resp.Code != 200 {
|
||||||
return fmt.Errorf("商品查询失败:%s", resp.Error)
|
return fmt.Errorf("商品查询失败:%s", pkg.JsonStringIgonErr(resp))
|
||||||
}
|
}
|
||||||
if resp.Data.List == nil || len(resp.Data.List) == 0 {
|
if resp.Data.List == nil || len(resp.Data.List) == 0 {
|
||||||
var respData ZltxProductDataById
|
var respData ZltxProductDataById
|
||||||
|
|
Loading…
Reference in New Issue