From 395c1305c0d222016c001978038a2fcda0d4e10c Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 11 八月 2020 14:53:33 +0800
Subject: [PATCH] add log

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

diff --git a/service/msgPush.go b/service/msgPush.go
index f13e9a2..a089fb6 100644
--- a/service/msgPush.go
+++ b/service/msgPush.go
@@ -264,11 +264,13 @@
 	if len(aliasArr) == 0 {
 		fmt.Println("娌℃湁鎺ㄩ�佺洰鏍�,aliasArr is empty")
 		return true, nil
+	} else {
+		fmt.Println("PushByAlias arr:", aliasArr)
 	}
 
 	cResult, taskId, ce := createPushMsg(title, msg)
+	fmt.Println("createPushMsg taskId:", taskId, "cResult:",cResult, "err:", ce)
 	if !cResult {
-		fmt.Println("createPushMsg taskId:", taskId, "err:", ce)
 		return false, errors.New("鍒涘缓鎺ㄩ�佸墠缃秷鎭け璐�")
 	}
 
@@ -286,7 +288,7 @@
 			"alias": aliasArr,
 		},
 		"taskid": taskId,
-		"is_async": true,
+		"is_async": false,
 	}
 	header := map[string]string {
 		"token": token,

--
Gitblit v1.8.0