Commit 59c5aca4 authored by m1991's avatar m1991

登录模块——用户退出-功能修复

parent ce3a6af7
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -223,6 +223,7 @@ public class LoginController {
return result;
}
@ApiOperation(value = "用户注册", notes = "用户注册", httpMethod = "POST")
@ApiImplicitParam(name = "userVo", value = "用户信息", dataType = "UserRegisterVo")
@PostMapping("/userRegister")
......
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