Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jpush-api-python-client
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
jpush-api-python-client
Commits
3361f7d6
Commit
3361f7d6
authored
Feb 28, 2019
by
laodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add params in sms message
parent
e22f1d33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
__init__.py
jpush/__init__.py
+1
-1
payload.py
jpush/push/payload.py
+5
-1
No files found.
jpush/__init__.py
View file @
3361f7d6
...
...
@@ -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
...
...
jpush/push/payload.py
View file @
3361f7d6
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment