فهرست منبع

修复数据刷新越界bug

317699326@qq.com 1 هفته پیش
والد
کامیت
6b4e173bf0
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      services/edb_refresh.go

+ 5 - 1
services/edb_refresh.go

@@ -62,7 +62,11 @@ func ConfigRefreshData(cont context.Context) (err error) {
 		//
 		//	}
 		//}
-		go BaseRefreshData(&wg, edbList[0].Source, edbList[0].SubSource, edbList)
+		if len(edbList) > 0 {
+			go BaseRefreshData(&wg, edbList[0].Source, edbList[0].SubSource, edbList)
+		} else {
+			wg.Done()
+		}
 	}
 
 	wg.Wait()