Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
Widget
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Android Widget
Widget
Commits
b9b8c23b
Commit
b9b8c23b
authored
Jan 10, 2024
by
tongzifang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setSslConfig
parent
c5ad7fc2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
build.gradle
fetch/build.gradle
+1
-1
OkHttpConfig.kt
.../main/java/com/qimai/android/fetch/config/OkHttpConfig.kt
+1
-1
StandardGsonResponseBodyConverter.kt
...ndroid/fetch/convert/StandardGsonResponseBodyConverter.kt
+2
-1
No files found.
fetch/build.gradle
View file @
b9b8c23b
...
...
@@ -63,7 +63,7 @@ repositories {
mavenCentral
()
}
group
'com.qmai.android.fetch'
version
'1.0.00
4
'
version
'1.0.00
7
'
gradlePublish
{
...
...
fetch/src/main/java/com/qimai/android/fetch/config/OkHttpConfig.kt
View file @
b9b8c23b
...
...
@@ -135,7 +135,7 @@ class OkHttpConfig private constructor(builder: Builder) {
fun
build
():
OkHttpConfig
{
setCacheConfig
()
setHeadersConfig
()
//
setSslConfig()
setSslConfig
()
setHostnameVerifier
()
addInterceptors
()
setTimeout
()
...
...
fetch/src/main/java/com/qimai/android/fetch/convert/StandardGsonResponseBodyConverter.kt
View file @
b9b8c23b
...
...
@@ -11,6 +11,7 @@ import okhttp3.ResponseBody
import
retrofit2.Converter
import
java.io.IOException
import
java.lang.reflect.Type
import
java.net.UnknownHostException
/**
* created by wangwei ON 2019-09-04 email:wangwei_5521@163.com
...
...
@@ -33,7 +34,7 @@ class StandardGsonResponseBodyConverter<T> constructor(
val
reponseString
=
value
.
string
()
// throw TOKENExpireException("token过期")
val
baseData
=
gson
.
fromJson
<
BaseData
<*>>(
reponseString
,
BaseData
::
class
.
java
)
val
baseData
=
gson
.
fromJson
(
reponseString
,
BaseData
::
class
.
java
)
?:
throw
UnknownHostException
(
)
if
(
TextUtils
.
equals
(
"false"
,
baseData
.
status
))
{
value
.
close
()
if
(
baseData
.
code
==
9001L
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment