Skip to content

Commit

Permalink
add params in sms message
Browse files Browse the repository at this point in the history
  • Loading branch information
laodong committed Feb 28, 2019
1 parent e22f1d3 commit 3361f7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jpush/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
schedulepayload,
]

__version__ = '3.3.5'
__version__ = '3.3.6'
VERSION = tuple(map(int, __version__.split('.')))

# Silence urllib3 INFO logging by default
Expand Down
6 changes: 5 additions & 1 deletion jpush/push/payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,16 @@ def message(msg_content, title=None, content_type=None, extras=None):
payload['extras'] = extras
return payload

def smsmessage(delay_time, temp_id, temp_para = None):
def smsmessage(delay_time, temp_id, temp_para = None, signid = None, active_filter = True):
payload = {}
payload["delay_time"]=delay_time
payload["temp_id"]=temp_id
if temp_para is not None:
payload['temp_para'] = temp_para
if signid is not None:
payload['signid'] = signid
if not active_filter:
payload['active_filter'] = False
return payload


Expand Down

0 comments on commit 3361f7d

Please sign in to comment.