liuxiaolong
2020-09-08 50c3437ec2e1874df6468bb83a9d5acf40482e6a
service/msgPush.go
@@ -184,7 +184,6 @@
   androidPush := map[string]map[string]map[string]string {
      "ups": {
         "notification": {
            "title": title,
            "body": msg,
            "big_text": msg,
            "click_type": "intent",
@@ -194,10 +193,8 @@
   }
   iosPush := map[string]interface{}{
      "type":"notify",
      "payload":"育英中学停车",
      "aps":map[string]interface{}{
         "alert":map[string]string{
            "title": title,
            "body": msg,
         },
         "content-available":0,
@@ -210,7 +207,6 @@
      },
      "push_message": map[string]map[string]string {
         "notification": {
            "title": title,
            "body": msg,
            "click_type": "intent",
            "intent": intent,
@@ -482,10 +478,14 @@
                  }
                  if v,ex := hikPersonMap[personId]; ex {
                     carOwners = append(carOwners, v.PersonName)
                     carOwners = append(carOwners, sn.PlateNo+"("+v.PersonName+")")
                  }
               } else { //找不到车主,即视为临时车,将车牌作为车主姓名推送
                  if sn.PlateNo == "无车牌" {
                  carOwners = append(carOwners, sn.PlateNo)
                  } else {
                     carOwners = append(carOwners, sn.PlateNo+"()")
                  }
               }
            }
         }