Commit 3361f7d6 authored by laodong's avatar laodong

add params in sms message

parent e22f1d33
......@@ -75,7 +75,7 @@ __all__ = [
schedulepayload,
]
__version__ = '3.3.5'
__version__ = '3.3.6'
VERSION = tuple(map(int, __version__.split('.')))
# Silence urllib3 INFO logging by default
......
......@@ -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
......
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