处理手机号未注册登录提示

This commit is contained in:
GYJ 2024-12-15 18:36:38 +08:00
parent 20753f84b3
commit 12ca117e82
2 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -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("验证码不能为空!");
}