Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
channels
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
gaoming
channels
Commits
62d8d565
Commit
62d8d565
authored
Jun 06, 2019
by
gaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finall
parent
ca1b996f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
models.cpython-36.pyc
like/__pycache__/models.cpython-36.pyc
+0
-0
models.py
like/models.py
+4
-0
No files found.
like/__pycache__/models.cpython-36.pyc
View file @
62d8d565
No preview for this file type
like/models.py
View file @
62d8d565
...
@@ -92,6 +92,10 @@ class PromotionChannel(models.Model):
...
@@ -92,6 +92,10 @@ class PromotionChannel(models.Model):
appid
=
'{0}{1}'
.
format
(
appid
,
"_{0}"
.
format
(
sub_name
)
if
sub_name
else
""
)
appid
=
'{0}{1}'
.
format
(
appid
,
"_{0}"
.
format
(
sub_name
)
if
sub_name
else
""
)
params
.
update
({
"appid"
:
appid
})
params
.
update
({
"appid"
:
appid
})
#如果callback_type不存在的话,默认为GET
params
.
update
({
'callback_type'
:
CHANNEL_CALLBACK_TYPE
.
GET_CALLBACK
.
value
[
0
]})
print
(
params
)
print
(
params
)
#保存并记录
#保存并记录
...
...
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