1
This commit is contained in:
@@ -143,10 +143,16 @@ public class JDOrderController extends BaseController {
|
|||||||
if (w instanceof JSONObject) {
|
if (w instanceof JSONObject) {
|
||||||
JSONObject wj = (JSONObject) w;
|
JSONObject wj = (JSONObject) w;
|
||||||
Object content = wj.get("content");
|
Object content = wj.get("content");
|
||||||
if (content instanceof String) {
|
if (!(content instanceof String)) {
|
||||||
String cleaned = stripUrls((String) content);
|
continue;
|
||||||
wj.put("content", cleaned);
|
|
||||||
}
|
}
|
||||||
|
String type = wj.getString("type");
|
||||||
|
if ("通用文案".equals(type)) {
|
||||||
|
// 通用文案需要保留链接,用于后续替换/复制
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
String cleaned = stripUrls((String) content);
|
||||||
|
wj.put("content", cleaned);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user