This commit is contained in:
Leo
2025-11-11 14:06:34 +08:00
parent 142b395dbe
commit 7294748ae9

View File

@@ -143,14 +143,20 @@ public class JDOrderController extends BaseController {
if (w instanceof JSONObject) {
JSONObject wj = (JSONObject) w;
Object content = wj.get("content");
if (content instanceof String) {
if (!(content instanceof String)) {
continue;
}
String type = wj.getString("type");
if ("通用文案".equals(type)) {
// 通用文案需要保留链接,用于后续替换/复制
continue;
}
String cleaned = stripUrls((String) content);
wj.put("content", cleaned);
}
}
}
}
}
/**
* 移除文本中的 URL 链接