瀏覽代碼

warning: estrusItems update

Yi 2 月之前
父節點
當前提交
afc74f8c7b
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      model/neck_ring_estrus_warning.go

+ 4 - 2
model/neck_ring_estrus_warning.go

@@ -110,11 +110,13 @@ func (n NeckRingEstrusWarningSlice) ToPB(
 					break
 				}
 			}
-		} else {
+		}
+
+		if matingWindowPeriodKind > pasturePb.MatingWindowPeriod_Invalid {
 			found = isIPeriod(matingWindowPeriodKind, nowTime, optimumMatingStartTime, optimumMatingEndTime)
 		}
 
-		if !found {
+		if found {
 			continue
 		}