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 bf508067
authored
Dec 06, 2017
by
xuzhenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试
1 parent
1ab4527a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/loginserver/apis/loginserver.go
src/loginserver/apis/loginserver.go
View file @
bf50806
...
...
@@ -20,9 +20,9 @@ import (
//登录接口
func
UserLoginApi
(
c
*
gin
.
Context
)
{
buf
:=
make
([]
byte
,
1024
)
n
,
_
:=
c
.
Request
.
Body
.
Read
(
buf
)
log
.
Println
(
string
(
buf
[
0
:
n
]))
//
buf := make([]byte, 1024)
//
n, _ := c.Request.Body.Read(buf)
//
log.Println(string(buf[0:n]))
loginType
:=
c
.
Request
.
FormValue
(
"login_type"
)
loginName
:=
c
.
Request
.
FormValue
(
"login_name"
)
loginPassword
:=
c
.
Request
.
FormValue
(
"login_password"
)
...
...
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