Sfoglia il codice sorgente

增加图片数量询问接口

wangbin 2 anni fa
parent
commit
117ae62379
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      service/levelMonitor/image_record.go

+ 3 - 0
service/levelMonitor/image_record.go

@@ -158,6 +158,9 @@ func (s *ImageRecordService) ImageIdentify(record levelMonitor.ImageRecord) {
 	}
 	s.UpdateImageRecordStatus(record.Id, string(body), 1)
 	identify := 0
+	if data.WordsResultNum == 0 {
+		return
+	}
 	if len(data.WordsResult) > 1 {
 		for _, words := range data.WordsResult {
 			i, err := strconv.Atoi(words.Words)