Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
D
data-server
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
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
licc
data-server
Commits
59c5aca4
Commit
59c5aca4
authored
Mar 17, 2021
by
m1991
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录模块——用户退出-功能修复
parent
ce3a6af7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
UploadServiceImpl.java
...java/cn/wisenergy/service/app/impl/UploadServiceImpl.java
+1
-1
UserServiceImpl.java
...n/java/cn/wisenergy/service/app/impl/UserServiceImpl.java
+2
-2
LoginController.java
...n/wisenergy/web/admin/controller/app/LoginController.java
+1
-0
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/UploadServiceImpl.java
View file @
59c5aca4
...
...
@@ -176,7 +176,7 @@ public class UploadServiceImpl implements UploadService {
System
.
out
.
println
(
"上传图片为空,请重新上传"
);
Map
map
=
new
HashMap
();
map
.
put
(
"code"
,
0
);
map
.
put
(
"msg"
,
"上传
视频
为空,请重新上传"
);
map
.
put
(
"msg"
,
"上传
图片
为空,请重新上传"
);
return
map
;
}
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/UserServiceImpl.java
View file @
59c5aca4
...
...
@@ -109,9 +109,9 @@ public class UserServiceImpl extends ServiceImpl<UsersMapper, User> implements U
//查询数据库,看看是否存在该用户
User
byUserId
=
usersMapper
.
getByUserId
(
userId
);
if
(
null
!=
byUserId
)
{
R
.
error
(
0
,
"该用户已存在!请直接登录!"
);
R
.
error
(
1
,
"该用户已存在!请直接登录!"
);
Map
map
=
new
HashMap
();
map
.
put
(
"code"
,
0
);
map
.
put
(
"code"
,
1
);
map
.
put
(
"msg"
,
"该用户已存在!请直接登录!"
);
return
map
;
}
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/LoginController.java
View file @
59c5aca4
...
...
@@ -223,6 +223,7 @@ public class LoginController {
return
result
;
}
@ApiOperation
(
value
=
"用户注册"
,
notes
=
"用户注册"
,
httpMethod
=
"POST"
)
@ApiImplicitParam
(
name
=
"userVo"
,
value
=
"用户信息"
,
dataType
=
"UserRegisterVo"
)
@PostMapping
(
"/userRegister"
)
...
...
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