|
|
@@ -6,6 +6,7 @@ import android.widget.Toast;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
|
+import com.googlecode.protobuf.format.util.TextUtils;
|
|
|
import com.sheep.gamegroup.exception.ExceptionEngine;
|
|
|
import com.sheep.gamegroup.model.api.ApiService;
|
|
|
import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
|
@@ -59,7 +60,7 @@ public class LoginPresenter implements LoginContract.Presenter {
|
|
|
|
|
|
@Override
|
|
|
public void onError(Throwable throwable) {
|
|
|
- view.NetError(-1,throwable.getMessage().toString());
|
|
|
+ view.NetError(-1, "网络异常");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -93,7 +94,7 @@ public class LoginPresenter implements LoginContract.Presenter {
|
|
|
|
|
|
@Override
|
|
|
public void onError(Throwable throwable) {
|
|
|
- view.NetError(-1, ExceptionEngine.handleException(throwable).getMessage());
|
|
|
+ view.NetError(-1, "网络异常");
|
|
|
}
|
|
|
|
|
|
@Override
|