处理手机号未注册登录提示
This commit is contained in:
parent
20753f84b3
commit
12ca117e82
|
|
@ -4,7 +4,6 @@ import com.sqx.modules.pay.wuyou.WuyouPay;
|
|||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
import org.springframework.scheduling.annotation.EnableAsync;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
|
||||
import java.util.Map;
|
||||
|
|
|
|||
|
|
@ -880,6 +880,10 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
|
|||
baseMapper.updateById(userInfo);
|
||||
return getResult(userInfo);
|
||||
} else {
|
||||
// 如果 platform 为空 则表示登录的时候输错了手机号
|
||||
if (StringUtils.isEmpty(platform)) {
|
||||
return Result.error("手机号未注册!");
|
||||
}
|
||||
if(StringUtils.isEmpty(msg)){
|
||||
return Result.error("验证码不能为空!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue