|
@@ -2,7 +2,6 @@ package com.emato.ich.fragment;
|
|
|
|
|
|
import android.os.Bundle;
|
|
|
import android.os.CountDownTimer;
|
|
|
-import android.os.Looper;
|
|
|
import android.text.Editable;
|
|
|
import com.emato.ich.utils.Log;
|
|
|
import android.view.LayoutInflater;
|
|
@@ -40,7 +39,6 @@ import com.google.android.material.snackbar.Snackbar;
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
-import java.util.concurrent.TimeUnit;
|
|
|
import java.util.concurrent.atomic.AtomicBoolean;
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
import java.util.regex.Matcher;
|
|
@@ -121,9 +119,7 @@ public class InputInfoFragment extends Fragment {
|
|
|
// 请求失败
|
|
|
Log.e(TAG, "onFailure: 请求oms获取手机号失败! 网络异常! ", e);
|
|
|
LoggingUtils.sendErrorLog("业务异常: 请求oms获取手机号失败! 网络异常! ", e);
|
|
|
- Looper.prepare();
|
|
|
ToastUtils.make(getContext(), "服务器异常! 请手动输入!");
|
|
|
- Looper.prepare();
|
|
|
mailNoLock.set(1);
|
|
|
}
|
|
|
|
|
@@ -200,9 +196,7 @@ public class InputInfoFragment extends Fragment {
|
|
|
@Override
|
|
|
public void onFailure(@NotNull Call call, @NotNull IOException e) {
|
|
|
// TODO 预下单调用失败
|
|
|
- Looper.prepare();
|
|
|
ToastUtils.make(getContext(), "请求服务器失败!网络异常!");
|
|
|
- Looper.loop();
|
|
|
Log.e(TAG, "onFailure: 预下单失败! call: " + call.timeout().toString(), e);
|
|
|
LoggingUtils.sendErrorLog("业务异常: 预下单失败! call: " + call.timeout().toString(), e);
|
|
|
}
|
|
@@ -443,6 +437,5 @@ public class InputInfoFragment extends Fragment {
|
|
|
}
|
|
|
super.onDestroy();
|
|
|
binding = null;
|
|
|
- Log.i(TAG, TAG + "被销毁。。。");
|
|
|
}
|
|
|
}
|