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