|
|
@@ -141,7 +141,7 @@ public abstract class JsonCallBack<T> extends AbsCallback<T> { |
|
|
response.close(); |
|
|
response.close(); |
|
|
int code = yzxResponse.code; |
|
|
int code = yzxResponse.code; |
|
|
// 一般来说服务器会和客户端约定一个数表示成功,如200,其余的表示失败,如400,300等,这里根据实际情况罗列并抛出 |
|
|
// 一般来说服务器会和客户端约定一个数表示成功,如200,其余的表示失败,如400,300等,这里根据实际情况罗列并抛出 |
|
|
if (code == 0) { |
|
|
|
|
|
|
|
|
if (code == 0 || code == 451 || code == 452 || code == 453) { |
|
|
//noinspection unchecked |
|
|
//noinspection unchecked |
|
|
return (T) yzxResponse; |
|
|
return (T) yzxResponse; |
|
|
} else if (code == 406) { |
|
|
} else if (code == 406) { |
|
|
|