Update UpdateManager.kt

This commit is contained in:
MNCHL 2023-12-25 21:42:56 +08:00 committed by GitHub
parent 8fb3d753aa
commit b1ff659e75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,8 +31,8 @@ class UpdateManager(private val context: Context) {
val response: Response = client.newCall(request).execute()
val responseBody: ResponseBody? = response.body() // 存储在变量中
val responseCode: Int = response.code() // 存储在变量中
val responseBody: ResponseBody? = response.body
val responseCode: Int = response.code
if (responseBody != null) {
val result = responseBody.string()