diff --git a/xhpc-modules/xhpc-user/src/main/java/com/xhpc/user/service/impl/XhpcAppUserServiceImpl.java b/xhpc-modules/xhpc-user/src/main/java/com/xhpc/user/service/impl/XhpcAppUserServiceImpl.java index 9ed0f903..09acf24b 100644 --- a/xhpc-modules/xhpc-user/src/main/java/com/xhpc/user/service/impl/XhpcAppUserServiceImpl.java +++ b/xhpc-modules/xhpc-user/src/main/java/com/xhpc/user/service/impl/XhpcAppUserServiceImpl.java @@ -15,6 +15,8 @@ import com.xhpc.user.aspect.LogUserUtils; import com.xhpc.user.domain.XhpcAppUser; import com.xhpc.user.mapper.XhpcAppUserMapper; import com.xhpc.user.service.IXhpcAppUserUserService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -43,6 +45,8 @@ public class XhpcAppUserServiceImpl implements IXhpcAppUserUserService { @Autowired private LogUserUtils logUserUtils; + + private static final Logger logger = LoggerFactory.getLogger(XhpcAppUserServiceImpl.class); /** * 更新C端用户 * @@ -153,7 +157,7 @@ public class XhpcAppUserServiceImpl implements IXhpcAppUserUserService { } String captcha = redisService.getCacheObject("pvToken:" + phone); if (!code.equalsIgnoreCase(captcha)) { - R.fail(HttpStatus.ERROR_STATUS, "验证码错误"); + return R.fail(HttpStatus.ERROR_STATUS, "验证码错误"); } return appLogin(phone, type, openid); }