diff --git a/app/src/main/java/com/huanchengfly/tieba/post/api/HttpConstant.kt b/app/src/main/java/com/huanchengfly/tieba/post/api/HttpConstant.kt index 5521e4ad..fc37d313 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/api/HttpConstant.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/api/HttpConstant.kt @@ -19,14 +19,6 @@ object Error { const val ERROR_UPDATE_NOT_ENABLE = 100 } - -object Url { - const val UPDATE_INFO = "https://huancheng65.github.io/TiebaLite/update_v2.json" - const val CHECK_UPDATE = "https://tblite.huanchengfly.tk/api/update" - const val CHANGELOG = "https://tblite.huanchengfly.tk/api/changelog/" -} - - object Header { const val FORCE_PARAM = "force_param" const val FORCE_PARAM_QUERY = "query" diff --git a/app/src/main/java/com/huanchengfly/tieba/post/services/OKSignService.kt b/app/src/main/java/com/huanchengfly/tieba/post/services/OKSignService.kt index cef585e6..a76c36c9 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/services/OKSignService.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/services/OKSignService.kt @@ -101,7 +101,6 @@ class OKSignService : IntentService(TAG), CoroutineScope, ProgressListener { if (loginInfo != null) { runBlocking { SingleAccountSigner( - this, this@OKSignService, AccountUtil.getLoginInfo(this@OKSignService)!! ) diff --git a/app/src/main/java/com/huanchengfly/tieba/post/utils/OKSigner.kt b/app/src/main/java/com/huanchengfly/tieba/post/utils/OKSigner.kt index 26ddc720..1b0ce56d 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/utils/OKSigner.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/utils/OKSigner.kt @@ -10,7 +10,6 @@ import com.huanchengfly.tieba.post.api.retrofit.exception.getErrorCode import com.huanchengfly.tieba.post.api.retrofit.exception.getErrorMessage import com.huanchengfly.tieba.post.models.SignDataBean import com.huanchengfly.tieba.post.models.database.Account -import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.FlowPreview import kotlinx.coroutines.delay import kotlinx.coroutines.flow.* @@ -19,7 +18,6 @@ import java.util.concurrent.ThreadLocalRandom import kotlin.properties.Delegates abstract class IOKSigner( - val coroutineScope: CoroutineScope, context: Context ) { private val contextWeakReference: WeakReference = WeakReference(context) @@ -89,10 +87,9 @@ class MultiAccountSigner( */ class SingleAccountSigner( - coroutineScope: CoroutineScope, context: Context, private val account: Account -) : IOKSigner(coroutineScope, context) { +) : IOKSigner(context) { companion object { const val TAG = "SingleAccountSigner" }