Browse Source

修复网络无效异常

drake 4 năm trước cách đây
mục cha
commit
ca6e8c413c
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      net/src/main/java/com/drake/net/NetConfig.kt

+ 2 - 2
net/src/main/java/com/drake/net/NetConfig.kt

@@ -33,7 +33,7 @@ import com.drake.net.scope.DialogCoroutineScope
 import com.drake.tooltip.toast
 import com.yanzhenjie.kalle.Kalle
 import com.yanzhenjie.kalle.KalleConfig
-import com.yanzhenjie.kalle.connect.BroadcastNetwork
+import com.yanzhenjie.kalle.connect.RealTimeNetwork
 import com.yanzhenjie.kalle.connect.http.RedirectInterceptor
 import com.yanzhenjie.kalle.exception.*
 import com.yanzhenjie.kalle.simple.cache.DiskCacheStore
@@ -114,7 +114,7 @@ fun Application.initNet(host: String, config: KalleConfig.Builder.() -> Unit = {
     app = this
     val builder = KalleConfig.newBuilder()
     builder.apply {
-        network(BroadcastNetwork(this@initNet))
+        network(RealTimeNetwork(this@initNet))
         addInterceptor(RedirectInterceptor())
         config()
     }