From 5c586b41bc2227657fd62867f77c0a4a92ab5b5b Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期一, 22 六月 2020 16:13:49 +0800
Subject: [PATCH] fix push content
---
service/msgPush.go | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/service/msgPush.go b/service/msgPush.go
index 18408e3..2a29457 100644
--- a/service/msgPush.go
+++ b/service/msgPush.go
@@ -72,11 +72,13 @@
"ttl": 8 * 3600 * 1000,
},
"audience": "all",
- "push_message": map[string]string{
- "title": title,
- "body": msg,
- "click_type": "url",
- "url": "http://baidu.com",
+ "push_message": map[string]map[string]string {
+ "notification": {
+ "title": title,
+ "body": msg,
+ "click_type": "url",
+ "url": "http://baidu.com",
+ },
},
}
header := map[string]string {
--
Gitblit v1.8.0