使用response.string 和 response.toString 的坑

Value okhttp3.internal.http.RealResponseBody@5e42574 of type java.lang.String cannot be converted to JSONObject

前者是將流轉換成字符串,後者是將對象轉換成字符串

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章