|
@@ -162,7 +162,8 @@ class DevicePushService:
|
|
|
# 判断是否进行APP消息推送,如app_push不为空,则不进行推送
|
|
|
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): # 推送显示图片
|
|
|
+ # 推送显示图片
|
|
|
+ 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:
|
|
|
key = '{}/{}/{}.jpeg'.format(param['uid'], param['channel'], param['n_time'])
|
|
|
else:
|
|
@@ -371,6 +372,9 @@ class DevicePushService:
|
|
|
elif push_type == 1:
|
|
|
PushObject.android_fcm_push(uid, appBundleId, token_val, n_time, event_type, msg_title,
|
|
|
msg_text, uid, channel, image_url)
|
|
|
+ elif push_type == 4:
|
|
|
+ PushObject.android_xmpush(uid, appBundleId, token_val, n_time, event_type, msg_title,
|
|
|
+ msg_text, uid, channel, image_url)
|
|
|
except Exception as e:
|
|
|
LOGGING.info('异常详情,errLine:{}, errMsg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|