|
|
@@ -55,6 +55,7 @@ public class CuiQiuMailServiceImpl implements CuiQiuMailService {
|
|
|
params.put("mail_id", ADMIN_MAIL_ID);
|
|
|
params.put("start_time", DateUtil.offsetDay(now, -1).toDateStr());
|
|
|
params.put("end_time", DateUtil.offsetDay(now, 1).toDateStr());
|
|
|
+ params.put("to", email);
|
|
|
params.put("limit", 20);
|
|
|
|
|
|
HttpRequest post = HttpUtil.createPost(url);
|
|
|
@@ -101,8 +102,11 @@ public class CuiQiuMailServiceImpl implements CuiQiuMailService {
|
|
|
CuiQiuEmailDetailDto.Content content = cuiQiuEmailDetailDto.getData().getContent();
|
|
|
|
|
|
String contentBody = content.getBody();
|
|
|
-
|
|
|
- String code = StrUtil.subWithLength(contentBody, contentBody.indexOf("ADOBE"), 215);
|
|
|
+ String str = "color:#505050; font-family:adobe-clean, Helvetica Neue, Helvetica, Verdana, Arial, sans-serif;";
|
|
|
+ String code = StrUtil.subWithLength(contentBody, contentBody.indexOf(str), 512);
|
|
|
+ if (StrUtil.isNotBlank(code)) {
|
|
|
+ code = code.replace(str, "");
|
|
|
+ }
|
|
|
return StringUtil.getVerifyCodePattern(code);
|
|
|
}
|
|
|
}
|