ソースを参照

vivo推送(修改返回值)

guanhailong 2 年 前
コミット
bab8f5dcb3
1 ファイル変更2 行追加2 行削除
  1. 2 2
      Service/DevicePushService.py

+ 2 - 2
Service/DevicePushService.py

@@ -190,7 +190,7 @@ class DevicePushService:
                         result['do_jpush_code'] = cls.do_jpush(**kwag_args)
                     elif push_type == 4:  # android xmpush
                         result['do_xmpush_code'] = cls.do_xmpush(**kwag_args)
-                    elif push_type == 5:
+                    elif push_type == 5:  # android vivopush
                         result['do_vivopush_code'] = cls.do_vivopush(**kwag_args)
             return result
         except Exception as e:
@@ -559,6 +559,6 @@ class DevicePushService:
                 .client_custom_map(**push_data) \
                 .message_dict()
             rec2 = sender_send.send(message)
-            logger.info('vivo推送结果:{}'.format(rec2))
+            return rec2
         except Exception as e:
             logger.info('vivo推送异常:{}'.format(e))