瀏覽代碼

wip:默认数据

wangshan 5 月之前
父節點
當前提交
d92a2cd7c6
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {