Browse Source

wip:默认数据

wangshan 5 months ago
parent
commit
d92a2cd7c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      marketanalysis/marketanalysis.go

+ 1 - 1
marketanalysis/marketanalysis.go

@@ -1143,7 +1143,7 @@ func (a *AnalysisEntity) MarketTime() (map[string]interface{}, error) {
 	Rest(res, &thisRow)
 	if thisRow.Thismarket.Buckets != nil && len(thisRow.Thismarket.Buckets) != 0 {
 		Projectmarket := thisRow.Thismarket.Buckets[0]
-		if Projectmarket.ProjectCount.DocCount == 0 {
+		if !isOffline && Projectmarket.ProjectCount.DocCount == 0 {
 			return nil, fmt.Errorf("未查询到项目数据")
 		}
 		if Projectmarket.ProjectCount.DocCount > MAProjectNumLimit {