Bläddra i källkod

修复小米推送返回值

linhaohong 11 månader sedan
förälder
incheckning
5527645ea4
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      Service/DevicePushService.py

+ 1 - 0
Service/DevicePushService.py

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