pull/1238/head^2
gedoor 3 years ago
parent d27a64d128
commit 45694e5c6f
  1. 6
      app/src/main/java/io/legado/app/data/entities/BookSource.kt
  2. 2
      app/src/main/java/io/legado/app/data/entities/rule/LoginRule.kt

@ -49,11 +49,11 @@ data class BookSource(
@delegate:Transient
@delegate:Ignore
@IgnoredOnParcel
val logInRule by lazy {
val loginRule by lazy {
if (loginUrl.isJsonObject()) {
return@lazy GSON.fromJsonObject<LogInRule>(loginUrl)
return@lazy GSON.fromJsonObject<LoginRule>(loginUrl)
} else {
return@lazy LogInRule(url = loginUrl)
return@lazy LoginRule(url = loginUrl)
}
}

@ -4,7 +4,7 @@ import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class LogInRule(
data class LoginRule(
val ui: HashMap<String, String>? = null,
val url: String? = null,
val checkJs: String? = null
Loading…
Cancel
Save