Bläddra i källkod

华为推送图片添加channel

locky 1 år sedan
förälder
incheckning
467cc722a5
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Service/DevicePushService.py

+ 1 - 1
Service/DevicePushService.py

@@ -716,7 +716,7 @@ class DevicePushService:
                 huawei_push_object = HuaweiPushObject()
                 push_result = huawei_push_object.send_push_notify_message(
                     token_val=token_val, msg_title=msg_title, msg_text=msg_text, uid=uid, event_type=event_type,
-                    n_time=n_time, image_url=image_url)
+                    n_time=n_time, image_url=image_url, channel=channel)
 
             LOGGING.info('{}推送图片,push_type:{},推送结果:{}'.format(uid, push_type, push_result))
         except Exception as e: