Browse Source

城市抽取

unknown 6 years ago
parent
commit
e6966d6e38
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/jy/extract/extractInit.go

+ 3 - 1
src/jy/extract/extractInit.go

@@ -106,7 +106,9 @@ func (e *ExtractTask) InitTestTaskInfo(resultcoll, trackcoll string) {
 			IsEtxLog:    true,
 			ProcessPool: make(chan bool, 1),
 		}
-		e.IsExtractCity = (*v)["isextractcity"].(bool)
+		if (*v)["isextractcity"] != nil {
+			e.IsExtractCity = (*v)["isextractcity"].(bool)
+		}
 	} else {
 		return
 	}