Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
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
1
Merge Requests
1
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
alpha
sun
Commits
730857a3
Commit
730857a3
authored
Mar 19, 2019
by
王浩
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'haow/dev' into 'test'
fix user is_tcc and pictorial create faild message See merge request
!119
parents
3b838e97
a4c519c0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
pictorial.py
api/pictorial.py
+4
-0
user.py
api/user.py
+1
-0
No files found.
api/pictorial.py
View file @
730857a3
...
@@ -65,6 +65,10 @@ class PictorialUpdateOrCreate(APIView):
...
@@ -65,6 +65,10 @@ class PictorialUpdateOrCreate(APIView):
except
Exception
as
e
:
except
Exception
as
e
:
error_logger
.
error
(
u'编辑
%
s用户信息失败
%
s'
%
(
id
,
e
))
error_logger
.
error
(
u'编辑
%
s用户信息失败
%
s'
%
(
id
,
e
))
raise
raise
if
not
data
.
get
(
'id'
):
return
{
'message'
:
'画报已存在'
}
return
{
return
{
'message'
:
'更新成功'
,
'message'
:
'更新成功'
,
'data'
:
data
'data'
:
data
...
...
api/user.py
View file @
730857a3
...
@@ -72,6 +72,7 @@ class UserUpdateOrCreate(APIView):
...
@@ -72,6 +72,7 @@ class UserUpdateOrCreate(APIView):
'phone'
:
request
.
POST
.
get
(
'phone'
),
'phone'
:
request
.
POST
.
get
(
'phone'
),
'email'
:
request
.
POST
.
get
(
'email'
),
'email'
:
request
.
POST
.
get
(
'email'
),
'gender'
:
request
.
POST
.
get
(
'gender'
),
'gender'
:
request
.
POST
.
get
(
'gender'
),
'is_tcc'
:
request
.
POST
.
get
(
'is_tcc'
),
}
}
try
:
try
:
...
...
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