locky 2 лет назад
Родитель
Сommit
9ecf935aa9
2 измененных файлов с 3 добавлено и 2 удалено
  1. 2 1
      Service/DevicePushService.py
  2. 1 1
      Service/HuaweiPushService/HuaweiPushService.py

+ 2 - 1
Service/DevicePushService.py

@@ -164,7 +164,8 @@ class DevicePushService:
             if not param['app_push']:
                 LOGGING.info('APP准备推送:{}, {}'.format(param['uid'], param))
                 # 推送显示图片
-                if (param['is_st'] == 1 or param['is_st'] == 3) and (push_type == 0 or push_type == 1 or push_type == 4):
+                if (param['is_st'] == 1 or param['is_st'] == 3) and \
+                        (push_type == 0 or push_type == 1 or push_type == 3 or push_type == 4):
                     if param['is_st'] == 1:
                         key = '{}/{}/{}.jpeg'.format(param['uid'], param['channel'], param['n_time'])
                     else:

+ 1 - 1
Service/HuaweiPushService/HuaweiPushService.py

@@ -1,7 +1,7 @@
 import json
 
 from Service.HuaweiPushService import push_admin
-from push_admin import messaging
+from Service.HuaweiPushService.push_admin import messaging
 
 
 class HuaweiPushObject: