Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pension
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
mengmeng
pension
Commits
391cca25
Commit
391cca25
authored
Mar 17, 2021
by
mlchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.优化未注册返回信息
parent
24a54ae4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
6 deletions
+11
-6
ApiLoginController.java
.../src/main/java/io/hmit/controller/ApiLoginController.java
+1
-1
UserServiceImpl.java
...i/src/main/java/io/hmit/service/impl/UserServiceImpl.java
+1
-1
ErrorCode.java
...mon/src/main/java/io/hmit/common/exception/ErrorCode.java
+1
-0
messages.properties
hmit-common/src/main/resources/i18n/messages.properties
+2
-1
messages_en_US.properties
...-common/src/main/resources/i18n/messages_en_US.properties
+2
-1
messages_zh_CN.properties
...-common/src/main/resources/i18n/messages_zh_CN.properties
+2
-1
messages_zh_TW.properties
...-common/src/main/resources/i18n/messages_zh_TW.properties
+2
-1
No files found.
hmit-api/src/main/java/io/hmit/controller/ApiLoginController.java
View file @
391cca25
...
@@ -51,7 +51,7 @@ public class ApiLoginController {
...
@@ -51,7 +51,7 @@ public class ApiLoginController {
return
new
Result
().
ok
(
map
);
return
new
Result
().
ok
(
map
);
}
}
@
Reques
tMapping
(
"login"
)
@
Ge
tMapping
(
"login"
)
@ApiOperation
(
"登录"
)
@ApiOperation
(
"登录"
)
public
Result
<
Map
<
String
,
Object
>>
login
(
@RequestParam
(
"openid"
)
String
openid
)
{
public
Result
<
Map
<
String
,
Object
>>
login
(
@RequestParam
(
"openid"
)
String
openid
)
{
...
...
hmit-api/src/main/java/io/hmit/service/impl/UserServiceImpl.java
View file @
391cca25
...
@@ -75,7 +75,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem
...
@@ -75,7 +75,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem
@Override
@Override
public
Map
<
String
,
Object
>
login
(
String
openId
)
{
public
Map
<
String
,
Object
>
login
(
String
openId
)
{
UserEntity
user
=
getByOpenId
(
openId
);
UserEntity
user
=
getByOpenId
(
openId
);
AssertUtils
.
isNull
(
user
,
ErrorCode
.
ACCOUNT_PASSWORD_ERRO
R
);
AssertUtils
.
isNull
(
user
,
ErrorCode
.
WECHAT_OPENID_NOT_REGISTE
R
);
//获取登录token
//获取登录token
TokenEntity
tokenEntity
=
tokenService
.
createToken
(
user
.
getId
());
TokenEntity
tokenEntity
=
tokenService
.
createToken
(
user
.
getId
());
...
...
hmit-common/src/main/java/io/hmit/common/exception/ErrorCode.java
View file @
391cca25
...
@@ -62,4 +62,5 @@ public interface ErrorCode {
...
@@ -62,4 +62,5 @@ public interface ErrorCode {
int
END_PROCESS_MESSAGE
=
10045
;
int
END_PROCESS_MESSAGE
=
10045
;
int
BACK_PROCESS_PARALLEL_ERROR
=
10046
;
int
BACK_PROCESS_PARALLEL_ERROR
=
10046
;
int
BACK_PROCESS_HANDLEING_ERROR
=
10047
;
int
BACK_PROCESS_HANDLEING_ERROR
=
10047
;
int
WECHAT_OPENID_NOT_REGISTER
=
10048
;
}
}
hmit-common/src/main/resources/i18n/messages.properties
View file @
391cca25
...
@@ -48,4 +48,5 @@
...
@@ -48,4 +48,5 @@
10045
=
终止
10045
=
终止
10046
=
多实例任务不能回退
10046
=
多实例任务不能回退
10047
=
存在多个并行执行的任务,不能回退
10047
=
存在多个并行执行的任务,不能回退
10044
=
存在多个处理中的任务,不能终止流程
10044
=
存在多个处理中的任务,不能终止流程
\ No newline at end of file
10048
=
微信号未注册
\ No newline at end of file
hmit-common/src/main/resources/i18n/messages_en_US.properties
View file @
391cca25
...
@@ -48,4 +48,5 @@
...
@@ -48,4 +48,5 @@
10045
=
END
10045
=
END
10046
=
Multi-instance tasks cannot be rolled back
10046
=
Multi-instance tasks cannot be rolled back
10047
=
There are multiple parallel tasks that cannot be rolled back
10047
=
There are multiple parallel tasks that cannot be rolled back
10044
=
There are tasks in multiple processes that cannot terminate the process
10044
=
There are tasks in multiple processes that cannot terminate the process
\ No newline at end of file
10048
=
WeChat not registered
\ No newline at end of file
hmit-common/src/main/resources/i18n/messages_zh_CN.properties
View file @
391cca25
...
@@ -48,4 +48,5 @@
...
@@ -48,4 +48,5 @@
10045
=
终止
10045
=
终止
10046
=
多实例任务不能回退
10046
=
多实例任务不能回退
10047
=
存在多个并行执行的任务,不能回退
10047
=
存在多个并行执行的任务,不能回退
10044
=
存在多个处理中的任务,不能终止流程
10044
=
存在多个处理中的任务,不能终止流程
\ No newline at end of file
10048
=
微信号未注册
\ No newline at end of file
hmit-common/src/main/resources/i18n/messages_zh_TW.properties
View file @
391cca25
...
@@ -48,4 +48,5 @@
...
@@ -48,4 +48,5 @@
10045
=
終止
10045
=
終止
10046
=
多實例任務不能回退
10046
=
多實例任務不能回退
10047
=
存在多個並行執行的任務,不能回退
10047
=
存在多個並行執行的任務,不能回退
10044
=
存在多個處理中的任務,不能終止流程
10044
=
存在多個處理中的任務,不能終止流程
\ No newline at end of file
10048
=
微信号未注册
\ No newline at end of file
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