liujc hace 1 año
padre
commit
5dc1cfe724

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/SmsCodeServiceImpl.java

@@ -60,7 +60,7 @@ public class SmsCodeServiceImpl implements SmsCodeService {
 	public boolean sendValidCode(String mobile, String type, ClientEnum platform, String code) {
 
         String configValue = sysConfigService.findConfigValue(SysConfigConstant.SMS_SEND_VERIFY);
-        if(StringUtils.isNotEmpty(configValue) && "1".equals(configValue)) {
+        if((StringUtils.isNotEmpty(configValue) && "1".equals(configValue)) || StringUtils.isNotBlank(code)) {
             if (StringUtils.isEmpty(mobile) || StringUtils.isEmpty(code)) {
                 throw new BizException("图形验证码错误");
             }