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 393c3019
authored
Dec 12, 2017
by
xuzhenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试
1 parent
591a23ff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
src/loginserver/apis/loginserver.go
src/loginserver/models/user.go
src/loginserver/apis/loginserver.go
View file @
393c301
...
...
@@ -84,6 +84,7 @@ func UserRegisterApi(c *gin.Context) {
Name
:
registerName
,
Password
:
registerPassword
,
}
log
.
Println
(
"%+v"
,
r
)
if
registerType
==
""
||
registerName
==
""
||
registerPassword
==
""
{
log
.
Printf
(
"%+v"
,
r
)
ReturnRespones
(
c
,
"104002"
,
"参数错误"
)
...
...
src/loginserver/models/user.go
View file @
393c301
...
...
@@ -88,6 +88,7 @@ func CheckUserNameRepeat(userName string) (result interface{}, err error) {
if
len
(
r
)
==
0
{
return
nil
,
nil
}
log
.
Println
(
userName
)
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