添加接口统一拦截码3800 跳登录页面

This commit is contained in:
haomingming
2026-11-04 10:38:23 +08:00
parent 98072d2615
commit cf4ca685f6
5 changed files with 121 additions and 9 deletions
@@ -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");