暂存方案1

This commit is contained in:
2023-04-18 11:03:07 +08:00
parent 32e3584fef
commit f913248fa1
10 changed files with 149 additions and 20 deletions

View File

@@ -55,6 +55,7 @@ public abstract class AbsActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
create();
Intent intent = getIntent();
if (intent != null) {
isFullWindow = getIntent().getBooleanExtra("isFull", false);
@@ -86,6 +87,9 @@ public abstract class AbsActivity extends AppCompatActivity {
protected void main() {
}
protected void create(){
}
protected boolean isStatusBarWhite() {

View File

@@ -223,6 +223,7 @@ public class CommonHttpUtil {
IMLoginManager.get(context).setDefaultBubbleUrl(obj.getString("defaultBubbleUrl"));
}
} catch (Exception e) {
e.printStackTrace();
String error = "info[0]:" + info[0] + "\n\n\n" + "Exception:" + e.getClass() + "---message--->" + e.getMessage();
ErrorActivity.forward("GetConfig接口返回数据异常", error);
}

View File

@@ -62,6 +62,7 @@ public abstract class HttpCallback extends AbsCallback<JsonBean> {
@Override
public void onError(Response<JsonBean> response) {
Throwable t = response.getException();
t.printStackTrace();
L.e("网络请求错误---->" + t.getClass() + " : " + t.getMessage());
if (t instanceof SocketTimeoutException || t instanceof ConnectException || t instanceof UnknownHostException || t instanceof UnknownServiceException || t instanceof SocketException) {
ToastUtil.show(R.string.load_failure);