|
@@ -66,9 +66,9 @@ func canTakePhoto() bool {
|
|
|
|
|
|
|
|
allowed := days == 0 || days >= mcu.CfgParams.TakePhotoIntervalDays
|
|
allowed := days == 0 || days >= mcu.CfgParams.TakePhotoIntervalDays
|
|
|
|
|
|
|
|
- baseapp.Logger.Infof("[%s] 本次拍照检查: 上次=%s, 当前=%s, 间隔=%d天, 要求=%d天, 允许=%v",
|
|
|
|
|
|
|
+ baseapp.Logger.Infof("[%s] 拍照检查: 上次=%s, 当前=%s, 间隔=%d天, 要求=%d天(0天或≥要求天数允许), 本次=%v",
|
|
|
MODULE_NAME, lastDate.Format("2006-01-02"), today.Format("2006-01-02"),
|
|
MODULE_NAME, lastDate.Format("2006-01-02"), today.Format("2006-01-02"),
|
|
|
- days, mcu.CfgParams.TakePhotoIntervalDays, allowed)
|
|
|
|
|
|
|
+ days, mcu.CfgParams.TakePhotoIntervalDays, map[bool]string{true: "允许", false: "不允许"}[allowed])
|
|
|
|
|
|
|
|
return allowed
|
|
return allowed
|
|
|
}
|
|
}
|