Browse Source

fix:debug测试

zqbao 9 months ago
parent
commit
9be38b3972
1 changed files with 4 additions and 1 deletions
  1. 4 1
      services/edb_refresh.go

+ 4 - 1
services/edb_refresh.go

@@ -56,7 +56,10 @@ func ConfigRefreshData(cont context.Context) (err error) {
 			continue
 		}
 		if len(edbList) != 0 {
-			go BaseRefreshData(&wg, edbList[0].Source, edbList[0].SubSource, edbList)
+			// debug环境仅测试刷新钢联
+			if edbList[0].Source == utils.DATA_SOURCE_MYSTEEL_CHEMICAL && utils.RunMode == "debug" {
+				go BaseRefreshData(&wg, edbList[0].Source, edbList[0].SubSource, edbList)
+			}
 		}
 	}