浏览代码

修复小米推送返回值

linhaohong 11 月之前
父节点
当前提交
5527645ea4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Service/DevicePushService.py

+ 1 - 0
Service/DevicePushService.py

@@ -680,6 +680,7 @@ class DevicePushService:
                 return True
                 return True
             ERROR_INFO_LOGGER.info('小米推送异常,uid:{},状态码{},时间:{},结果:{},'
             ERROR_INFO_LOGGER.info('小米推送异常,uid:{},状态码{},时间:{},结果:{},'
                                    .format(uid, response.status_code, n_time, response.json()))
                                    .format(uid, response.status_code, n_time, response.json()))
+            return False
         except Exception as e:
         except Exception as e:
             ERROR_INFO_LOGGER.info('小米推送异常,uid:{},时间:{},error_line:{},error_msg:{}'.
             ERROR_INFO_LOGGER.info('小米推送异常,uid:{},时间:{},error_line:{},error_msg:{}'.
                                    format(uid, n_time, e.__traceback__.tb_lineno, repr(e)))
                                    format(uid, n_time, e.__traceback__.tb_lineno, repr(e)))