diff --git a/app/src/module_community/java/com/yizhuan/erban/community/publish/presenter/PublishPresenter.java b/app/src/module_community/java/com/yizhuan/erban/community/publish/presenter/PublishPresenter.java index 2ebbea40c..dca3d9237 100644 --- a/app/src/module_community/java/com/yizhuan/erban/community/publish/presenter/PublishPresenter.java +++ b/app/src/module_community/java/com/yizhuan/erban/community/publish/presenter/PublishPresenter.java @@ -68,6 +68,7 @@ public class PublishPresenter extends BaseMvpPresenter { public void acceptThrowable(String s, Throwable throwable) { super.acceptThrowable(s, throwable); if (throwable != null) { + throwable.printStackTrace(); dealUploadFileError(throwable); } else { if (getMvpView() != null) { @@ -134,11 +135,13 @@ public class PublishPresenter extends BaseMvpPresenter { .flatMap((Function>) path -> FileModel.get().uploadFile(path)) .compose(bindUntilEvent(PresenterEvent.DESTROY)) + .observeOn(AndroidSchedulers.mainThread()) .subscribe(new DontWarnObserver() { @Override public void acceptThrowable(String url, Throwable throwable) { super.acceptThrowable(url, throwable); if (throwable != null) { + throwable.printStackTrace(); if (mImageUploadSubscribe != null) { mImageUploadSubscribe.dispose(); } diff --git a/gradle.properties b/gradle.properties index 1aa493307..9077941bd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -31,8 +31,8 @@ COMPILE_SDK_VERSION=33 MIN_SDK_VERSION=21 TARGET_SDK_VERSION=33 -version_name=2.6.5 -version_code=2605 +version_name=2.6.6 +version_code=2606 #systemProp.https.proxyHost=127.0.0.1 #systemProp.https.proxyPort=7890 \ No newline at end of file