结构修改

This commit is contained in:
renzhiyuan 2025-10-09 17:21:40 +08:00
parent 98035bee13
commit 348756eebf
1 changed files with 2 additions and 1 deletions

View File

@ -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"
@ -95,7 +96,7 @@ func (z ZltxOrderStatisticsTool) getZltxOrderStatistics(number string, requireDa
return err return err
} }
if resData.Code != 200 { if resData.Code != 200 {
return fmt.Errorf("zltx order statistics error: %s", resData.Error) return fmt.Errorf("为获取到数据,请检查权限: %s", pkg.JsonStringIgonErr(resData))
} }
//按照日期排序 //按照日期排序
sort.Slice(resData.Data.RecentThreeDays, func(i, j int) bool { sort.Slice(resData.Data.RecentThreeDays, func(i, j int) bool {