From 4724511f9e25c3aedf715d647b5ef4f5ac3d630d Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期二, 30 六月 2020 14:12:26 +0800 Subject: [PATCH] msg add time --- controllers/car.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/controllers/car.go b/controllers/car.go index a3e4209..e60608f 100644 --- a/controllers/car.go +++ b/controllers/car.go @@ -31,7 +31,7 @@ } if left <=10 && left != prePushLeft { go func() { - message := fmt.Sprintf("褰撳墠鍓╀綑杞︿綅锛�%d涓�", left) + message := fmt.Sprintf("%s 鍓╀綑杞︿綅锛�%d涓�", time.Now().Format("2006-01-02 15:04:05"), left) b, e := service.Push("鑲茶嫳鏅烘収鍋滆溅", message) if b { prePushLeft = left -- Gitblit v1.8.0