Commit e1761822 authored by tongzifang's avatar tongzifang

Merge remote-tracking branch 'origin/master'

parents 46c1a7f5 443130dd
......@@ -63,7 +63,7 @@ repositories {
mavenCentral()
}
group 'com.qmai.android.fetch'
version '1.2.61-SNAPSHOT'
version '1.2.62-SNAPSHOT'
gradlePublish {
......
......@@ -144,7 +144,7 @@ class KotlinCoroutinesCallAdapterFactory(
//业务逻辑错误
if (t is BizException) {
serverError?.apply {
this.serverError(
this.serverError(request.url().toString(),
"${t.message}",
gson.toJson(requestStartMessage),
t.responseMsg
......@@ -154,7 +154,7 @@ class KotlinCoroutinesCallAdapterFactory(
} else if (t is GsonParseErrorException) {
//gson解析异常
gsonParseError?.apply {
this.parseError(
this.parseError(request.url().toString(),
"${t.message}",
gson.toJson(requestStartMessage),
t.responseMsg
......@@ -162,7 +162,7 @@ class KotlinCoroutinesCallAdapterFactory(
}
} else if (t is ServerResponseException) {
serverError?.apply {
this.serverError(
this.serverError(request.url().toString(),
"${t.message}",
gson.toJson(requestStartMessage),
t.responseMsg
......
......@@ -4,5 +4,5 @@ package com.qimai.android.fetch.interceptors
* json解析异常
*/
interface GsonParseError {
fun parseError(msg: String? = null,requestMsg:String?=null,responseMsg:String?=null)
fun parseError(url:String,msg: String? = null,requestMsg:String?=null,responseMsg:String?=null)
}
\ No newline at end of file
......@@ -4,6 +4,6 @@ package com.qimai.android.fetch.interceptors
* 服务器返回的false
*/
interface ServerError {
fun serverError(msg: String? = null,requestMsg:String?=null,responseMsg:String?=null)
fun serverError(url:String?,msg: String? = null,requestMsg:String?=null,responseMsg:String?=null)
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment