结构修改

This commit is contained in:
renzhiyuan 2025-10-09 15:57:02 +08:00
parent d0dae2d43d
commit f2d64b0a4e
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package tools
import (
"ai_scheduler/internal/config"
"ai_scheduler/internal/entitys"
"ai_scheduler/internal/pkg"
"context"
"encoding/json"
"fmt"
@ -167,7 +168,7 @@ func (z ZltxProductTool) getZltxProduct(body *ZltxProductRequest, requireData *e
return fmt.Errorf("解析商品数据失败:%w", err)
}
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 {
var respData ZltxProductDataById