|
|
@@ -181,7 +181,7 @@ public class UserService {
|
|
|
}
|
|
|
|
|
|
public User loginByPhone(String phone, String code) {
|
|
|
- User user = userRepo.findByPhoneAndDelFalse(phone).orElseThrow(new BusinessException("该手机未注册"));
|
|
|
+ User user = userRepo.findByPhoneAndDelFalse(phone).orElse(null);
|
|
|
smsService.verify(phone, code);
|
|
|
if (user == null) {
|
|
|
String name = "9th_" + RandomStringUtils.randomAlphabetic(8);
|