Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppTag
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
dataplatform
AppTag
Commits
0ce00b1d
Commit
0ce00b1d
authored
Nov 14, 2018
by
wangjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix userName to username
parent
32d77411
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
UserController.java
...n/java/com/mobvista/apptag/controller/UserController.java
+1
-1
UserServiceImpl.java
...ava/com/mobvista/apptag/service/impl/UserServiceImpl.java
+2
-2
add.js
src/main/resources/static/js/appjs/user/add.js
+1
-1
No files found.
src/main/java/com/mobvista/apptag/controller/UserController.java
View file @
0ce00b1d
...
...
@@ -132,7 +132,7 @@ public class UserController {
@PostMapping
(
"/user/exit"
)
@ResponseBody
boolean
exit
(
@RequestParam
(
name
=
"user
N
ame"
)
String
username
)
{
boolean
exit
(
@RequestParam
(
name
=
"user
n
ame"
)
String
username
)
{
// 存在,不通过,false
return
!
userService
.
exit
(
username
);
}
...
...
src/main/java/com/mobvista/apptag/service/impl/UserServiceImpl.java
View file @
0ce00b1d
...
...
@@ -26,8 +26,8 @@ public class UserServiceImpl implements UserService {
@Override
public
boolean
createUser
(
Map
<
String
,
Object
>
uMap
,
String
userId
)
{
User
user
=
new
User
();
user
.
setUserId
(
uMap
.
get
(
"user
N
ame"
).
toString
());
user
.
setUserName
(
uMap
.
get
(
"user
N
ame"
).
toString
());
user
.
setUserId
(
uMap
.
get
(
"user
n
ame"
).
toString
());
user
.
setUserName
(
uMap
.
get
(
"user
n
ame"
).
toString
());
try
{
user
.
setPassword
(
MD5Util
.
getMD5Str
(
uMap
.
get
(
"password"
).
toString
()));
}
catch
(
Exception
e
)
{
...
...
src/main/resources/static/js/appjs/user/add.js
View file @
0ce00b1d
...
...
@@ -49,7 +49,7 @@ function validateRule() {
type
:
"post"
,
// 数据发送方式
dataType
:
"json"
,
// 接受数据格式
data
:
{
// 要传递的数据
user
N
ame
:
function
()
{
user
n
ame
:
function
()
{
return
$
(
"#username"
).
val
();
}
}
...
...
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