mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-21 00:42:43 +08:00
fix: 修复Singbox热补丁失败时的返回值格式,确保返回JSON字符串
This commit is contained in:
@@ -935,7 +935,7 @@ function Singbox订阅配置文件热补丁(sb_json_text) {
|
||||
return JSON.stringify(config, null, 2);
|
||||
} catch (e) {
|
||||
console.error("Singbox热补丁执行失败:", e);
|
||||
return sb_json_text;
|
||||
return JSON.stringify(JSON.parse(sb_json_text), null, 2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user