|
@@ -19,6 +19,7 @@ from pyfcm import FCMNotification
|
|
|
from AnsjerPush.config import APP_BUNDLE_DICT, APNS_MODE, BASE_DIR, APNS_CONFIG, FCM_CONFIG, JPUSH_CONFIG, XMPUSH_CONFIG \
|
|
|
, VIVOPUSH_CONFIG, OPPOPUSH_CONFIG, MEIZUPUSH_CONFIG
|
|
|
from Model.models import UidPushModel
|
|
|
+from Object.S3Email import S3Email
|
|
|
from Service.CommonService import CommonService
|
|
|
from Service.VivoPushService.push_admin.APIMessage import PushMessage
|
|
|
from Service.VivoPushService.push_admin.APISender import APISender
|
|
@@ -134,7 +135,8 @@ class PushObject:
|
|
|
assert res.status_code == 200
|
|
|
except Exception as e:
|
|
|
logger.info('--->IOS推送异常{}'.format(repr(e)))
|
|
|
- return repr(e)
|
|
|
+ email_content = 'IOS推送异常: {}'.format(repr(e))
|
|
|
+ S3Email().send_email(email_content, 'servers@ansjer.com')
|
|
|
|
|
|
@staticmethod
|
|
|
def android_fcm_push(nickname, app_bundle_id, token_val, n_time, event_type, msg_title, msg_text,
|