Improve Utils

This commit is contained in:
2dust
2024-11-19 10:09:03 +08:00
parent 5d47777307
commit f67af69dda
3 changed files with 16 additions and 5 deletions
@@ -280,7 +280,7 @@ object AngConfigManager {
val config = CustomFmt.parse(JsonUtil.toJson(srv)) ?: continue
config.subscriptionId = subid
val key = MmkvManager.encodeServerConfig("", config)
MmkvManager.encodeServerRaw(key, JsonUtil.toJsonPretty(srv))
MmkvManager.encodeServerRaw(key, JsonUtil.toJsonPretty(srv)?:"")
count += 1
}
return count