Roc 1 year ago
parent
commit
0e19a5ecbf
1 changed files with 5 additions and 1 deletions
  1. 5 1
      services/base_from_sci.go

+ 5 - 1
services/base_from_sci.go

@@ -169,7 +169,11 @@ func HandleData(dataMap map[string]map[string]string) {
 				errMsgList = append(errMsgList, fmt.Sprint("刷新ETA指标异常,指标编码:", indexCode, err.Error()))
 				continue
 			}
-			go logic.RefreshSci(edbInfo, ``)
+
+			// 已经加入到指标库的话,那么就去更新ETA指标库吧
+			if edbInfo != nil {
+				go logic.RefreshSci(edbInfo, ``)
+			}
 		}
 	}
 }