|
@@ -41,6 +41,7 @@ class GatewayPushService:
|
|
|
def ios_apns_push(nickname, app_bundle_id, token_val, n_time, event_type, msg_title, msg_text):
|
|
|
try:
|
|
|
logger = logging.getLogger('info')
|
|
|
+ logger.info('--->进来苹果推送')
|
|
|
cli = apns2.APNSClient(mode=APNS_MODE,
|
|
|
client_cert=os.path.join(BASE_DIR, APNS_CONFIG[app_bundle_id]['pem_path']))
|
|
|
alert = apns2.PayloadAlert(title=msg_title, body=msg_text)
|