This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
package m9zApi
import "tgk-touch/internal/library/m9z"
// 开始任务用于日落开灯,结束任务用于日出关灯。
// rise/set 的协议语义保持不变:rise 始终是日出,set 始终是日落。
func applyStartTaskSolarTime(task *m9z.ControlTask, sunTimes *m9z.SunTimes) {
if task.TimeType == 1 {
task.ExecTime = sunTimes.Sunset
}
func applyStopTaskSolarTime(task *m9z.ControlTask, sunTimes *m9z.SunTimes) {
task.ExecTime = sunTimes.Sunrise