优化
This commit is contained in:
@@ -13,9 +13,9 @@ import java.util.concurrent.TimeUnit
|
||||
object ApiClient {
|
||||
private const val BASE_URL = "http://device.shuziweidao.com:8889/"
|
||||
|
||||
//private const val TIME_OUT = 30L // 超时时间(秒)
|
||||
private const val TIME_OUT = 60L // 超时时间(秒)
|
||||
//todo 临时测试改为5秒
|
||||
private const val TIME_OUT = 5L // 超时时间(秒)
|
||||
// private const val TIME_OUT = 5L // 超时时间(秒)
|
||||
|
||||
private val okHttpClient = OkHttpClient.Builder()
|
||||
.connectTimeout(TIME_OUT, TimeUnit.SECONDS)
|
||||
|
||||
Reference in New Issue
Block a user