|
@@ -1,4 +1,5 @@
|
|
import json
|
|
import json
|
|
|
|
+import logging
|
|
|
|
|
|
from Service.HuaweiPushService import push_admin
|
|
from Service.HuaweiPushService import push_admin
|
|
from Service.HuaweiPushService.push_admin import messaging
|
|
from Service.HuaweiPushService.push_admin import messaging
|
|
@@ -23,6 +24,8 @@ class HuaweiPushObject:
|
|
:param: token
|
|
:param: token
|
|
:return:
|
|
:return:
|
|
"""
|
|
"""
|
|
|
|
+ logger = logging.getLogger('info')
|
|
|
|
+ logger.info('华为推送参数:{}, {}, {}, {}'.format(msg_title, msg_text, image_url, token_val))
|
|
|
|
|
|
notification = messaging.Notification(
|
|
notification = messaging.Notification(
|
|
title=msg_title,
|
|
title=msg_title,
|