|
@@ -70,7 +70,7 @@ func InitCalculateIndex() {
|
|
|
hzMethod := "edb_index/detail"
|
|
|
edbLibIndexMethod := "/edb_info/detail"
|
|
|
var needAddIndexArr []string
|
|
|
-
|
|
|
+ needAddIndexMap := make(map[string]string)
|
|
|
for rk, row := range rows {
|
|
|
if rk <= 0 {
|
|
|
continue
|
|
@@ -148,7 +148,10 @@ func InitCalculateIndex() {
|
|
|
}
|
|
|
|
|
|
if total == len(cv.BaseEdbInfoCode) {
|
|
|
- needAddIndexArr = append(needAddIndexArr, cv.EdbCode)
|
|
|
+ if _, ok := needAddIndexMap[cv.EdbCode]; !ok {
|
|
|
+ needAddIndexArr = append(needAddIndexArr, cv.EdbCode)
|
|
|
+ needAddIndexMap[cv.EdbCode] = cv.EdbCode
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|