公众号登录
This commit is contained in:
@ -99,10 +99,10 @@ public class SysLoginController {
|
||||
if (sysUser != null) {
|
||||
token = loginService.wxlogin(sysUser.getUserName(), sysUser.getPw());
|
||||
} else {
|
||||
return AjaxResult.error("登录失败");
|
||||
ajax.put("msg","登录失败");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
return AjaxResult.error("登录失败");
|
||||
ajax.put("msg","登录失败");
|
||||
}
|
||||
ajax.put(Constants.TOKEN, token);
|
||||
return ajax;
|
||||
|
@ -248,6 +248,7 @@ public class SysUserController extends BaseController {
|
||||
user.setEmail(user.getUserName() + "@benyi.com");
|
||||
user.setCreateBy(SecurityUtils.getUsername());
|
||||
user.setPassword(SecurityUtils.encryptPassword(user.getPassword()));
|
||||
user.setPw(user.getPassword());
|
||||
int bl = userService.insertUser(user);
|
||||
if (bl > 0) {
|
||||
ByTeacherJbxx byTeacherJbxx = new ByTeacherJbxx();
|
||||
|
Reference in New Issue
Block a user