Commit 71160d66 by amateur

1

1 parent 1118fc1a
...@@ -217,6 +217,7 @@ public class NativeApi { ...@@ -217,6 +217,7 @@ public class NativeApi {
js.fail("下载地址错误"); js.fail("下载地址错误");
return; return;
} }
final String finalUrl = URLDecoder.decode(url);
String newName = FileUtils.getFileName(name); String newName = FileUtils.getFileName(name);
if (!TextUtils.isEmpty(newName)) { if (!TextUtils.isEmpty(newName)) {
name = newName; name = newName;
...@@ -226,7 +227,7 @@ public class NativeApi { ...@@ -226,7 +227,7 @@ public class NativeApi {
final String fileName = name; final String fileName = name;
this.mActivity.runOnUiThread(()-> { this.mActivity.runOnUiThread(()-> {
FragmentManager manager = this.handler.getFragmentManager(); FragmentManager manager = this.handler.getFragmentManager();
DownloadDialog.show(manager, url, fileName); DownloadDialog.show(manager, finalUrl, fileName);
}); });
js.success(null); js.success(null);
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!