docs(plan): correct admin-web routes and reduce webhook URL parse noise
This commit is contained in:
@@ -796,13 +796,15 @@ public class SendService {
|
||||
if (!StringUtils.hasText(extInfo)) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
Map<String, Object> parsed = JsonUtils.fromJson(extInfo, Map.class);
|
||||
if (parsed != null && parsed.get("webhook_url") != null) {
|
||||
return String.valueOf(parsed.get("webhook_url"));
|
||||
if (extInfo.trim().startsWith("{")) {
|
||||
try {
|
||||
Map<String, Object> parsed = JsonUtils.fromJson(extInfo, Map.class);
|
||||
if (parsed != null && parsed.get("webhook_url") != null) {
|
||||
return String.valueOf(parsed.get("webhook_url"));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// fallback: treat invalid JSON ext_info as plain URL string
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// fallback: treat legacy ext_info as plain URL string
|
||||
}
|
||||
return extInfo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user