This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
3、只对新的多线程下载任务有效
|
||||
4、只对多线程的任务有效
|
||||
-->
|
||||
<useBlock value="false"/>
|
||||
<useBlock value="true"/>
|
||||
|
||||
<!--设置下载线程数,下载线程数不能小于1
|
||||
注意:
|
||||
|
||||
@@ -38,7 +38,7 @@ public class HttpDownloadModule extends BaseViewModule {
|
||||
//"http://202.98.201.103:7000/vrs/TPK/ZTC440402001Z.tpk";
|
||||
private final String defFilePath =
|
||||
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getPath()
|
||||
+ "/ZTC440402001Z.tpk";
|
||||
+ "/TOTWOO-v3.5.6.apk";
|
||||
|
||||
private MutableLiveData<DownloadEntity> liveData = new MutableLiveData<>();
|
||||
private DownloadEntity singDownloadInfo;
|
||||
|
||||
@@ -52,7 +52,7 @@ public class AppUtil {
|
||||
String path = String.format("%s/code/%s", context.getFilesDir().getPath(), fileName);
|
||||
File ftpCode = new File(path);
|
||||
if (!ftpCode.exists()) {
|
||||
FileUtil.createFile(path);
|
||||
FileUtil.createFile(ftpCode);
|
||||
CommonUtil.createFileFormInputStream(context.getAssets()
|
||||
.open(String.format("help_code/%s", fileName)),
|
||||
path);
|
||||
|
||||
Reference in New Issue
Block a user