添加接口统一拦截码3800 跳登录页面
This commit is contained in:
@@ -81,7 +81,10 @@ public class HttpMD5SendInfoUtil {
|
||||
if (conn.getResponseCode() == 200) {
|
||||
InputStream inStream = conn.getInputStream();
|
||||
String result = new String(StreamTool.readInputStream(inStream), "UTF-8");
|
||||
String string = new String(result);
|
||||
String string = new String(result);
|
||||
if (UIUtils.interceptCode38000(getContext(), string)) {
|
||||
return;
|
||||
}
|
||||
JSONObject jsonObject = new JSONObject(string);
|
||||
String optString = jsonObject.optString("code");
|
||||
String message = jsonObject.optString("message");
|
||||
@@ -170,7 +173,10 @@ public class HttpMD5SendInfoUtil {
|
||||
if (ssss == 200) {
|
||||
InputStream inStream = conn.getInputStream();
|
||||
String result = new String(StreamTool.readInputStream(inStream), "UTF-8");
|
||||
String string = new String(result);
|
||||
String string = new String(result);
|
||||
if (UIUtils.interceptCode38000(getContext(), string)) {
|
||||
return;
|
||||
}
|
||||
LogUtil.i("result = "+result);
|
||||
JSONObject jsonObject = new JSONObject(string);
|
||||
String optString = jsonObject.optString("code");
|
||||
@@ -260,7 +266,10 @@ public class HttpMD5SendInfoUtil {
|
||||
if (ssss == 200) {
|
||||
InputStream inStream = conn.getInputStream();
|
||||
String result = new String(StreamTool.readInputStream(inStream), "UTF-8");
|
||||
String string = new String(result);
|
||||
String string = new String(result);
|
||||
if (UIUtils.interceptCode38000(getContext(), string)) {
|
||||
return;
|
||||
}
|
||||
LogUtil.i("result = "+result);
|
||||
JSONObject jsonObject = new JSONObject(string);
|
||||
String optString = jsonObject.optString("code");
|
||||
@@ -345,7 +354,10 @@ public class HttpMD5SendInfoUtil {
|
||||
if (ssss == 200) {
|
||||
InputStream inStream = conn.getInputStream();
|
||||
String result = new String(StreamTool.readInputStream(inStream), "UTF-8");
|
||||
String string = new String(result);
|
||||
String string = new String(result);
|
||||
if (UIUtils.interceptCode38000(getContext(), string)) {
|
||||
return;
|
||||
}
|
||||
LogUtil.i("result = "+result);
|
||||
JSONObject jsonObject = new JSONObject(string);
|
||||
String optString = jsonObject.optString("code");
|
||||
|
||||
Reference in New Issue
Block a user