|
@@ -307,14 +307,15 @@ class PushObject:
|
|
|
.title(msg_title) \
|
|
|
.content(msg_text) \
|
|
|
.push_mode(1) \
|
|
|
- .notify_type(1) \
|
|
|
+ .notify_type(3) \
|
|
|
.skip_type(skip_type) \
|
|
|
.request_id('123456') \
|
|
|
.classification(1) \
|
|
|
.client_custom_map(**push_data) \
|
|
|
.message_dict()
|
|
|
rec = sender_send.send(message)
|
|
|
- logger.info('vivo推送结果:{}'.format(rec.json()))
|
|
|
+ logger.info('vivo推送结果:{}'.format(rec))
|
|
|
+ return rec
|
|
|
except Exception as e:
|
|
|
logger.info('vivo推送异常:{}'.format(e))
|
|
|
|
|
@@ -438,5 +439,6 @@ class PushObject:
|
|
|
# 进行推送
|
|
|
response = requests.post(url, data=data)
|
|
|
logger.info("魅族推送结果:{}".format(response.json()))
|
|
|
+ return response.status_code
|
|
|
except Exception as e:
|
|
|
return repr(e)
|