|
|
@ -3,6 +3,7 @@ package com.epmet.service.impl; |
|
|
|
import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; |
|
|
|
import cn.binarywang.wx.miniapp.bean.WxMaUserInfo; |
|
|
|
import com.epmet.common.token.constant.LoginConstant; |
|
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
import com.epmet.commons.tools.exception.ErrorCode; |
|
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
@ -248,7 +249,7 @@ public class LoginServiceImpl implements LoginService { |
|
|
|
//1、验证码是否正确
|
|
|
|
boolean flag = captchaService.validate(formDTO.getUuid(), formDTO.getCaptcha()); |
|
|
|
if (!flag) { |
|
|
|
return new Result<UserTokenResultDTO>().error(ErrorCode.CAPTCHA_ERROR); |
|
|
|
return new Result<UserTokenResultDTO>().error(EpmetErrorCode.ERR10019.getCode()); |
|
|
|
} |
|
|
|
//2、账号是否存在
|
|
|
|
//获取用户信息
|
|
|
|