fix bug
This commit is contained in:
@@ -15,7 +15,6 @@ zlt:
|
||||
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath:/mapper/*Mapper.xml
|
||||
#实体扫描,多个package用逗号或者分号分隔
|
||||
typeAliasesPackage: com.sharding.demo.model
|
||||
global-config:
|
||||
db-config:
|
||||
|
||||
@@ -62,7 +62,7 @@ public class ValidateCodeServiceImpl implements IValidateCodeService {
|
||||
}
|
||||
|
||||
SysUser user = userService.findByMobile(mobile);
|
||||
if (user != null) {
|
||||
if (user == null) {
|
||||
log.error("根据用户手机号{}查询用户为空", mobile);
|
||||
return Result.failed("手机号不存在");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user