@ -45,8 +45,7 @@ object DirectLinkUpload {
}
fun getRule(): Rule? {
val json = ACache.get(cacheDir = false).getAsString(ruleFileName)
return getConfig() ?: defaultRule
return GSON.fromJsonObject<Rule>(json).getOrNull() ?: defaultRule
fun getConfig(): Rule? {