mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 04:08:43 +08:00 
			
		
		
		
	Merge branch 'feature/mall_product' of https://gitee.com/zhijiantianya/ruoyi-vue-pro
# Conflicts: # yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/api/coupon/CouponTemplateApiImpl.java
This commit is contained in:
		@@ -23,10 +23,10 @@ import cn.iocoder.yudao.module.system.service.member.MemberService;
 | 
			
		||||
import cn.iocoder.yudao.module.system.service.oauth2.OAuth2TokenService;
 | 
			
		||||
import cn.iocoder.yudao.module.system.service.social.SocialUserService;
 | 
			
		||||
import cn.iocoder.yudao.module.system.service.user.AdminUserService;
 | 
			
		||||
import com.google.common.annotations.VisibleForTesting;
 | 
			
		||||
import com.xingyuv.captcha.model.common.ResponseModel;
 | 
			
		||||
import com.xingyuv.captcha.model.vo.CaptchaVO;
 | 
			
		||||
import com.xingyuv.captcha.service.CaptchaService;
 | 
			
		||||
import com.google.common.annotations.VisibleForTesting;
 | 
			
		||||
import lombok.extern.slf4j.Slf4j;
 | 
			
		||||
import org.springframework.beans.factory.annotation.Value;
 | 
			
		||||
import org.springframework.stereotype.Service;
 | 
			
		||||
@@ -85,7 +85,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
 | 
			
		||||
            throw exception(AUTH_LOGIN_BAD_CREDENTIALS);
 | 
			
		||||
        }
 | 
			
		||||
        // 校验是否禁用
 | 
			
		||||
        if (ObjectUtil.notEqual(user.getStatus(), CommonStatusEnum.ENABLE.getStatus())) {
 | 
			
		||||
        if (CommonStatusEnum.isDisable(user.getStatus())) {
 | 
			
		||||
            createLoginLog(user.getId(), username, logTypeEnum, LoginResultEnum.USER_DISABLED);
 | 
			
		||||
            throw exception(AUTH_LOGIN_USER_DISABLED);
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -119,7 +119,7 @@ public class OAuth2ClientServiceImpl implements OAuth2ClientService {
 | 
			
		||||
        if (client == null) {
 | 
			
		||||
            throw exception(OAUTH2_CLIENT_NOT_EXISTS);
 | 
			
		||||
        }
 | 
			
		||||
        if (ObjectUtil.notEqual(client.getStatus(), CommonStatusEnum.ENABLE.getStatus())) {
 | 
			
		||||
        if (CommonStatusEnum.isDisable(client.getStatus())) {
 | 
			
		||||
            throw exception(OAUTH2_CLIENT_DISABLE);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -26,7 +26,6 @@ import org.springframework.util.Assert;
 | 
			
		||||
import javax.annotation.Resource;
 | 
			
		||||
import java.util.List;
 | 
			
		||||
import java.util.Map;
 | 
			
		||||
import java.util.Objects;
 | 
			
		||||
import java.util.regex.Pattern;
 | 
			
		||||
 | 
			
		||||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
 | 
			
		||||
@@ -140,7 +139,7 @@ public class SmsTemplateServiceImpl implements SmsTemplateService {
 | 
			
		||||
        if (channelDO == null) {
 | 
			
		||||
            throw exception(SMS_CHANNEL_NOT_EXISTS);
 | 
			
		||||
        }
 | 
			
		||||
        if (!Objects.equals(channelDO.getStatus(), CommonStatusEnum.ENABLE.getStatus())) {
 | 
			
		||||
        if (CommonStatusEnum.isDisable(channelDO.getStatus())) {
 | 
			
		||||
            throw exception(SMS_CHANNEL_DISABLE);
 | 
			
		||||
        }
 | 
			
		||||
        return channelDO;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user