From 50c3437ec2e1874df6468bb83a9d5acf40482e6a Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 08 九月 2020 11:08:29 +0800
Subject: [PATCH] rm push msg title and nightMsg for manger

---
 service/msgPush.go |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/service/msgPush.go b/service/msgPush.go
index 41b2c2e..7f19c39 100644
--- a/service/msgPush.go
+++ b/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 { //鎵句笉鍒拌溅涓伙紝鍗宠涓轰复鏃惰溅锛屽皢杞︾墝浣滀负杞︿富濮撳悕鎺ㄩ��
-						carOwners = append(carOwners, sn.PlateNo)
+						if sn.PlateNo == "鏃犺溅鐗�" {
+							carOwners = append(carOwners, sn.PlateNo)
+						} else {
+							carOwners = append(carOwners, sn.PlateNo+"()")
+						}
 					}
 				}
 			}

--
Gitblit v1.8.0