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
e56abba3
Commit
e56abba3
authored
Jul 02, 2019
by
gaoming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'returnmessage'
parents
5b84f971
329b340e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
views.py
like/views.py
+20
-8
No files found.
like/views.py
View file @
e56abba3
...
...
@@ -30,10 +30,17 @@ class Statistic(View):
# 迈可思, 趣米, 广点通, 爱思助手激活回调(增加点入)
#self.async_active_callback.delay(**data)
self
.
async_active_callback
(
**
data
)
return
JsonResponse
({
"code"
:
0
,
#0为成功,其他为失败
"failMsg"
:
""
,
#错误信息
})
result
=
{
"error"
:
0
,
"message"
:
""
,
"extra"
:
null
,
"data"
:
{},
"user_type"
:
{}
}
return
JsonResponse
(
result
)
def
post
(
self
,
request
):
...
...
@@ -43,10 +50,15 @@ class Statistic(View):
#self.async_active_callback.delay(**data)
self
.
async_active_callback
(
**
data
)
return
JsonResponse
({
"code"
:
0
,
#0为成功,其他为失败
"failMsg"
:
""
,
#错误信息
})
result
=
{
"error"
:
0
,
"message"
:
""
,
"extra"
:
null
,
"data"
:
{},
"user_type"
:
{}
}
return
JsonResponse
(
result
)
@csrf_exempt
def
dispatch
(
self
,
*
args
,
**
kwargs
):
...
...
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