liuxiaolong
2020-08-18 b42533a6833b3b366f3f5c08bbc27f9f3ccbaeed
controllers/car.go
@@ -45,7 +45,7 @@
                  go func() {
                     t := time.Now().Format("2006-01-02 15:04:05")
                     message := fmt.Sprintf("%s 剩余车位:%d个", t, left)
                     b, e, aliasArr := service.PushByAlias("育英中学停车", message)
                     b, e, aliasArr := service.PushByAlias("育英中学停车", message, false)
                     //记录推送日志
                     logE := models.Log{
                        Id: uuid.NewV4().String(),
@@ -191,7 +191,7 @@
func (c *CarController) TestPush() {
   left := getSpaceLeft()
   message := fmt.Sprintf("%s 剩余车位:%d个", time.Now().Format("2006-01-02 15:04:05"), left)
   b, e, aliasArr := service.PushByAlias("育英中学停车", message)
   b, e, aliasArr := service.PushByAlias("育英中学停车", message, true)
   //记录推送日志
   logE := models.Log{
      Id: uuid.NewV4().String(),