linhw 2024-09-03 17:31:06 +08:00
parent 853be49419
commit 299926c650
1 changed files with 4 additions and 0 deletions

View File

@ -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) {