From 1fb176c260f7bd5694499c2cded1ed136b730e49 Mon Sep 17 00:00:00 2001 From: fengyuecanzhu <1021300691@qq.com> Date: Fri, 25 Mar 2022 21:42:41 +0800 Subject: [PATCH] fix upload log --- .../java/xyz/fycz/myreader/ui/activity/AboutActivity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/xyz/fycz/myreader/ui/activity/AboutActivity.java b/app/src/main/java/xyz/fycz/myreader/ui/activity/AboutActivity.java index a784763..68644aa 100644 --- a/app/src/main/java/xyz/fycz/myreader/ui/activity/AboutActivity.java +++ b/app/src/main/java/xyz/fycz/myreader/ui/activity/AboutActivity.java @@ -24,6 +24,7 @@ import xyz.fycz.myreader.base.observer.MyObserver; import xyz.fycz.myreader.common.APPCONST; import xyz.fycz.myreader.common.URLCONST; import xyz.fycz.myreader.databinding.ActivityAboutBinding; +import xyz.fycz.myreader.model.user.UserService; import xyz.fycz.myreader.ui.dialog.DialogCreator; import xyz.fycz.myreader.ui.dialog.LoadingDialog; import xyz.fycz.myreader.ui.dialog.MyAlertDialog; @@ -165,7 +166,9 @@ public class AboutActivity extends BaseActivity { Observable.create((ObservableOnSubscribe) emitter -> { File zipFile = FileUtils.getFile(logZip); if (ZipUtils.zipFile(logDir, zipFile)) { - emitter.onNext(OkHttpUtils.upload(URLCONST.LOG_UPLOAD_URL, logZip, fileName)); + emitter.onNext(OkHttpUtils.upload( + URLCONST.LOG_UPLOAD_URL + "?action=log" + UserService.INSTANCE.makeAuth(), + logZip, fileName)); } else { emitter.onError(new Throwable("日志文件压缩失败")); }