|
|
@@ -27,7 +27,14 @@ public class TicketCodeCommonUtil {
|
|
|
if (StrUtil.isEmpty(str)) {
|
|
|
return str;
|
|
|
}
|
|
|
- String code = StrUtil.subWithLength(body, body.indexOf(str), 512);
|
|
|
+ int index = body.indexOf(str);
|
|
|
+ if (index == -1) {
|
|
|
+ if (goodsId == 33l) {
|
|
|
+ str = "X-Report-Abuse: abuse@adobe.com";
|
|
|
+ }
|
|
|
+ index = body.indexOf(str);
|
|
|
+ }
|
|
|
+ String code = StrUtil.subWithLength(body, index, 512);
|
|
|
if (StrUtil.isNotBlank(code)) {
|
|
|
code = code.replace(str, "");
|
|
|
}
|