main
parent
853be49419
commit
299926c650
|
|
@ -187,6 +187,10 @@ public class AppLoginController {
|
||||||
@PostMapping("/login")
|
@PostMapping("/login")
|
||||||
@ApiOperation(value = "登录", notes = "登录")
|
@ApiOperation(value = "登录", notes = "登录")
|
||||||
public R<?> login(@RequestBody LoginForm loginForm) {
|
public R<?> login(@RequestBody LoginForm loginForm) {
|
||||||
|
String phone = loginForm.getPhoneNumber();
|
||||||
|
if (phone.indexOf("+") != -1) {
|
||||||
|
loginForm.setPhoneNumber(phone.substring(phone.indexOf("+") + 1,phone.length()));
|
||||||
|
}
|
||||||
AppUser appUser = appUserService.selectAppUserByPhone(loginForm.getPhoneNumber());
|
AppUser appUser = appUserService.selectAppUserByPhone(loginForm.getPhoneNumber());
|
||||||
|
|
||||||
if (appUser == null) {
|
if (appUser == null) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue