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