Skip to content

Commit

Permalink
[Feat]: 修复图片加载失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
why committed Mar 14, 2024
1 parent 2a0e4ac commit 49185ba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
agp = "8.4.0-alpha13"
blueprint = "1.1.48"
blueprint = "1.1.49"
coreSplashscreen = "1.0.1"
firebaseCrashlyticsGradle = "2.9.9"
fragmentKtx = "1.6.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ class OkHttpProgressGlideModule : AppGlideModule() {
.newBuilder()
.timeout(240)
.apply { networkInterceptors().removeIf { it is HttpLoggingInterceptor } }
.addInterceptor {
it.proceed(
it.request().newBuilder()
.addHeader("Cookie", "kira=1")
.build()
)
}
.addNetworkInterceptor(createInterceptor(DispatchingProgressListener()))
.build()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import com.bumptech.glide.request.target.CustomViewTarget
import com.bumptech.glide.request.transition.Transition
import com.davemorrissey.labs.subscaleview.ImageSource
import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView
import com.xiaoyv.common.kts.debugLog
import java.io.File

/**
Expand Down

0 comments on commit 49185ba

Please sign in to comment.