Commit 5fdb139b authored by hupantingxue's avatar hupantingxue

Fix some issues;

parent 0c7d0c0c
...@@ -3,7 +3,7 @@ import logging ...@@ -3,7 +3,7 @@ import logging
BASE_URL = "https://api.jpush.cn/" BASE_URL = "https://api.jpush.cn/"
PUSH_URL = BASE_URL + 'v3/push/' PUSH_URL = BASE_URL + 'v3/push'
logger = logging.getLogger('jpush') logger = logging.getLogger('jpush')
......
...@@ -81,11 +81,11 @@ def android(alert, title=None, builder_id=None, extras=None): ...@@ -81,11 +81,11 @@ def android(alert, title=None, builder_id=None, extras=None):
if alert is not None: if alert is not None:
payload['alert'] = alert payload['alert'] = alert
if title is not None: if title is not None:
payload['title'] = collapse_key payload['title'] = title
if builder_id is not None: if builder_id is not None:
payload['builder_id'] = builder_id payload['builder_id'] = builder_id
if extra is not None: if extra is not None:
payload['extra'] = extra payload['extras'] = extras
return payload return payload
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment