Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
xuzhenhao
/
xuzhenhao-dev-icesimbapolysdklogin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit be6cd3fb
authored
Dec 06, 2017
by
xuzhenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善了检查昵称是否重复接口的返回
1 parent
8d3be031
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/loginserver/models/user.go
src/loginserver/models/user.go
View file @
be6cd3f
...
...
@@ -69,9 +69,10 @@ func CheckUserNameRepeat(userName string) (result interface{}, err error) {
return
"104001"
,
err
}
if
len
(
r
)
==
0
{
return
false
,
nil
return
nil
,
nil
}
return
true
,
nil
err
=
errors
.
New
(
"该名称已被使用"
)
return
"105001"
,
err
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment