From 6ecda400e04a118326cabe768f8808e9b5514af6 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期三, 05 八月 2020 19:46:35 +0800 Subject: [PATCH] set 90 spaceNum,limit <=5 push msg --- service/carService.go | 2 +- controllers/car.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/car.go b/controllers/car.go index 2093f1a..e29274a 100644 --- a/controllers/car.go +++ b/controllers/car.go @@ -32,7 +32,7 @@ models.SetSpaceNo(hikSta.TotalPermPlace) initCacheM = true } - if left <=10 && left != prePushLeft { + if left <=5 && left != prePushLeft { go func() { message := fmt.Sprintf("%s 鍓╀綑杞︿綅锛�%d涓�", time.Now().Format("2006-01-02 15:04:05"), left) b, e := service.Push("鑲茶嫳鏅烘収鍋滆溅", message) diff --git a/service/carService.go b/service/carService.go index 4848976..d9a9ce0 100644 --- a/service/carService.go +++ b/service/carService.go @@ -209,7 +209,7 @@ //} //} if len(resultList) == 0 { - for i:=1;i<89;i++ { + for i:=1;i<91;i++ { pi := models.PosInfo { SpaceNo: strconv.Itoa(i), PosNo: "", -- Gitblit v1.8.0