|
|
@@ -10,6 +10,7 @@ import cn.hutool.http.HttpUtil;
|
|
|
import com.cyksj.common.constant.Constant;
|
|
|
import com.cyksj.common.exception.BusinessRuntimeException;
|
|
|
import com.cyksj.common.util.Jsons;
|
|
|
+import com.cyksj.common.util.StringUtil;
|
|
|
import com.cyksj.common.util.TicketCodeCommonUtil;
|
|
|
import com.cyksj.mapper.CuiQiuEmailConfigMapper;
|
|
|
import com.cyksj.model.dto.CuiQiuEmailDetailDto;
|
|
|
@@ -161,10 +162,15 @@ public class CuiQiuMailServiceImpl implements CuiQiuMailService {
|
|
|
if (StrUtil.isEmpty(code)) {
|
|
|
code = StrUtil.subAfter(body, "Enter this code to sign in", true);
|
|
|
}
|
|
|
+ if (StrUtil.isEmpty(code)) {
|
|
|
+ code = StrUtil.subAfter(body, "font-weight: 400; color: #232323; padding-top: 20px;", true);
|
|
|
+ }
|
|
|
}
|
|
|
if (StrUtil.isEmpty(code)) {
|
|
|
throw BusinessRuntimeException.getInstance("查询失败,请检查是否发送了登陆码..");
|
|
|
}
|
|
|
+ int length = 4;
|
|
|
+ return StringUtil.getVerifyCodePattern(code, length);
|
|
|
} else {
|
|
|
String urlPref;
|
|
|
String nfVerifyUrl;
|