diff --git a/jpush/__init__.py b/jpush/__init__.py index 0a29fe0..9a26c78 100644 --- a/jpush/__init__.py +++ b/jpush/__init__.py @@ -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 diff --git a/jpush/push/payload.py b/jpush/push/payload.py index 001230e..aaf5588 100644 --- a/jpush/push/payload.py +++ b/jpush/push/payload.py @@ -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