|
@@ -113,7 +113,7 @@ class NotificationV2View(View):
|
|
|
|
|
|
if not nickname:
|
|
|
nickname = uid
|
|
|
-
|
|
|
+ logger.info('APP消息推送V2接口,是否进行APP推送:{},1为不推送,null为推送'.format(have_dkey))
|
|
|
if not have_dkey:
|
|
|
# 设置推送消息的时间间隔
|
|
|
new_detect_interval = redis_list[0]['uid_set__new_detect_interval']
|
|
@@ -125,6 +125,7 @@ class NotificationV2View(View):
|
|
|
detect_group_list = detect_group.split(',')
|
|
|
if event_type in detect_group_list:
|
|
|
redisObj.set_data(key=dkey, val=1, expire=detect_interval)
|
|
|
+ logger.info('APP消息推送间隔:{}s'.format(detect_interval))
|
|
|
|
|
|
if is_st == 1 or is_st == 3: # 使用aws s3
|
|
|
aws_s3_client = s3_client(region=region)
|
|
@@ -204,7 +205,7 @@ class NotificationV2View(View):
|
|
|
try:
|
|
|
# 推送消息
|
|
|
if not have_dkey:
|
|
|
- logger.info('准备推送:{}, {}'.format(uid, request_dict))
|
|
|
+ logger.info('APP准备推送:{}, {}'.format(uid, request_dict))
|
|
|
if (is_st == 1 or is_st == 3) and (push_type == 0 or push_type == 1): # 推送显示图片
|
|
|
if is_st == 1:
|
|
|
key = '{}/{}/{}.jpeg'.format(uid, channel, n_time)
|