|
@@ -232,7 +232,7 @@ func (s *infoBoardService) EdgeCmd(tenant, sn string, cmdNum, id int) {
|
|
|
param["sleep"] = sleep
|
|
|
param["wakeup"] = wakeup
|
|
|
}
|
|
|
- param["reboot"] = "12:30:1" //每日重启时间
|
|
|
+ param["reboot"] = "12:30:59" //每日重启时间
|
|
|
s.reqEdge(tenant, edgePost, param, action)
|
|
|
case 101: //更新亮度 音量, 这里需要做成定时任务去跑
|
|
|
device := &dao.InfoBoard{
|
|
@@ -301,8 +301,8 @@ func isEight() bool {
|
|
|
|
|
|
// ledTimeFormat led开始 结束时间格式化
|
|
|
func ledTimeFormat(stime string, etime string) (string, string) {
|
|
|
- startTime := fmt.Sprintf("%v %v:01", time.Now().Format("2006-01-02"), stime)
|
|
|
- endTime := fmt.Sprintf("%v %v:01", time.Now().Format("2006-01-02"), etime)
|
|
|
+ startTime := fmt.Sprintf("%v %v:59", time.Now().Format("2006-01-02"), stime)
|
|
|
+ endTime := fmt.Sprintf("%v %v:59", time.Now().Format("2006-01-02"), etime)
|
|
|
|
|
|
ktime, _ := time.Parse("2006-01-02 15:04:05", startTime)
|
|
|
jtime, _ := time.Parse("2006-01-02 15:04:05", endTime)
|
|
@@ -310,5 +310,5 @@ func ledTimeFormat(stime string, etime string) (string, string) {
|
|
|
atoi1, _ := strconv.Atoi(ktime.Format("15"))
|
|
|
atoi2, _ := strconv.Atoi(jtime.Format("15"))
|
|
|
|
|
|
- return fmt.Sprintf("%v:%v:1", atoi1, ktime.Format("4")), fmt.Sprintf("%v:%v:1", atoi2, jtime.Format("4"))
|
|
|
+ return fmt.Sprintf("%v:%v:59", atoi1, ktime.Format("4")), fmt.Sprintf("%v:%v:59", atoi2, jtime.Format("4"))
|
|
|
}
|