|
@@ -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("图形验证码错误");
|
|
|
}
|