|
@@ -588,8 +588,9 @@ class PushObject:
|
|
|
},
|
|
|
"token": [token_val]
|
|
|
}
|
|
|
+ LOGGER.info("uid:{},时间:{},荣耀推送发送内容:{}".format(uid, n_time, push_data))
|
|
|
response = requests.post(push_url, json=push_data, headers=headers)
|
|
|
- LOGGER.info("uid:{},时间:{},荣耀推送通知返回值:{}".format(uid, n_time, response.json()))
|
|
|
+ LOGGER.info("uid:{},时间:{},荣耀推送通知返回值:{}".format(uid, n_time, response.json()))
|
|
|
# 一键通话透传推送
|
|
|
if int(event_type) in EventTypeEnumObj.DATA_PUSH_EVENT_TYPE_LIST.value:
|
|
|
push_data = {
|
|
@@ -597,7 +598,7 @@ class PushObject:
|
|
|
"token": [token_val]
|
|
|
}
|
|
|
response = requests.post(push_url, json=push_data, headers=headers)
|
|
|
- LOGGER.info("uid:{},时间:{},荣耀透传推送返回值:{}".format(uid, n_time, response.json()))
|
|
|
+ LOGGER.info("uid:{},时间:{},荣耀透传推送返回值:{}".format(uid, n_time, response.json()))
|
|
|
return True
|
|
|
except Exception as e:
|
|
|
LOGGER.info("荣耀推送异常:error_line:{},error_msg:{}".format(e.__traceback__.tb_lineno, repr(e)))
|