Commit 391cca25 authored by mlchun's avatar mlchun

1.优化未注册返回信息

parent 24a54ae4
...@@ -51,7 +51,7 @@ public class ApiLoginController { ...@@ -51,7 +51,7 @@ public class ApiLoginController {
return new Result().ok(map); return new Result().ok(map);
} }
@RequestMapping("login") @GetMapping("login")
@ApiOperation("登录") @ApiOperation("登录")
public Result<Map<String, Object>> login(@RequestParam("openid") String openid) { public Result<Map<String, Object>> login(@RequestParam("openid") String openid) {
......
...@@ -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_ERROR); AssertUtils.isNull(user, ErrorCode.WECHAT_OPENID_NOT_REGISTER);
//获取登录token //获取登录token
TokenEntity tokenEntity = tokenService.createToken(user.getId()); TokenEntity tokenEntity = tokenService.createToken(user.getId());
......
...@@ -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;
} }
...@@ -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
...@@ -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
...@@ -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
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment