Skip to content

Commit 95173fb

Browse files
committed
修复同步请求全局参数问题
1 parent 8c178d5 commit 95173fb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ dependencies {
4646
implementation 'androidx.navigation:navigation-ui-ktx:2.5.2'
4747
implementation 'androidx.recyclerview:recyclerview:1.2.1'
4848
implementation 'com.google.android.material:material:1.6.1'
49-
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'
50-
implementation 'com.squareup.okhttp3:okhttp-brotli:4.9.0'
49+
implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0'
50+
implementation 'com.squareup.okhttp3:okhttp-brotli:4.10.0'
5151
implementation 'com.github.bumptech.glide:glide:4.11.0'
5252
implementation 'com.github.bumptech.glide:annotations:4.11.0'
5353
implementation 'com.github.bumptech.glide:okhttp3-integration:4.11.0'

oklibrary/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ afterEvaluate {
5151
// You can then customize attributes of the publication as shown below.
5252
groupId = 'com.gateoftruth.library'
5353
artifactId = 'OkSimple'
54-
version = "3.3.7"
54+
version = "3.3.8"
5555
}
5656
}
5757
}

oklibrary/src/main/java/com/gateoftruth/oklibrary/SynchronizeRequest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ class SynchronizeRequest(url: String, type: String) : BaseRequest(url, type) {
1010
override fun <T> execute(bean: BaseSynchronizeBean<T>): BaseSynchronizeBean<T> {
1111
try {
1212
val cache = requestCacheControl
13-
requestBuilder.url(requestUrl).tag(tag)
1413
if (cache != null) {
1514
requestBuilder.cacheControl(cache)
1615
} else if (OkSimple.networkUnavailableForceCache && !OksimpleNetworkUtil.isNetworkAvailable()) {
1716
requestBuilder.cacheControl(CacheControl.FORCE_CACHE)
1817
}
1918
prepare(null)
19+
requestBuilder.url(requestUrl).tag(tag)
2020
val finalRequest = requestBuilder.build()
2121
requestObject =
2222
RequestObject(tag, contentString, finalRequest.body?.contentLength() ?: -1L)

0 commit comments

Comments
 (0)