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

View File

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