diff --git a/internal/tools/zltx_statistics.go b/internal/tools/zltx_statistics.go index 7601605..d15d552 100644 --- a/internal/tools/zltx_statistics.go +++ b/internal/tools/zltx_statistics.go @@ -3,6 +3,7 @@ package tools import ( "ai_scheduler/internal/config" "ai_scheduler/internal/entitys" + "ai_scheduler/internal/pkg" "context" "encoding/json" "fmt" @@ -95,7 +96,7 @@ func (z ZltxOrderStatisticsTool) getZltxOrderStatistics(number string, requireDa return err } 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 {