From 008228f5c2d5ad929b099fca260d0afec592c830 Mon Sep 17 00:00:00 2001 From: laoyuyu <511455842@qq.com> Date: Wed, 21 Mar 2018 20:17:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ifdaa00031d5bba66d318c083effad13dc11aca11 --- .../arialyy/aria/core/common/TaskRecord.java | 32 +++++++++++++++++++ .../aria/core/upload/BaseNormalTarget.java | 5 ++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 Aria/src/main/java/com/arialyy/aria/core/common/TaskRecord.java diff --git a/Aria/src/main/java/com/arialyy/aria/core/common/TaskRecord.java b/Aria/src/main/java/com/arialyy/aria/core/common/TaskRecord.java new file mode 100644 index 00000000..b385f1b8 --- /dev/null +++ b/Aria/src/main/java/com/arialyy/aria/core/common/TaskRecord.java @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2016 AriaLyy(https://github.com/AriaLyy/Aria) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.arialyy.aria.core.common; + +import com.arialyy.aria.orm.DbEntity; + +/** + * Created by laoyuyu on 2018/3/21. + * 任务上传或下载的记录 + */ +class TaskRecord extends DbEntity{ + /** + * 任务线程数 + */ + public int threadNum; + + //public int re + +} diff --git a/Aria/src/main/java/com/arialyy/aria/core/upload/BaseNormalTarget.java b/Aria/src/main/java/com/arialyy/aria/core/upload/BaseNormalTarget.java index a7014c98..4fba7b68 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/upload/BaseNormalTarget.java +++ b/Aria/src/main/java/com/arialyy/aria/core/upload/BaseNormalTarget.java @@ -17,9 +17,12 @@ package com.arialyy.aria.core.upload; import android.support.annotation.NonNull; import android.text.TextUtils; +import com.arialyy.aria.core.download.DownloadEntity; import com.arialyy.aria.core.manager.TEManager; import com.arialyy.aria.core.queue.UploadTaskQueue; +import com.arialyy.aria.orm.DbEntity; import com.arialyy.aria.util.ALog; +import com.arialyy.aria.util.CommonUtil; import java.io.File; /** @@ -95,7 +98,7 @@ abstract class BaseNormalTarget return false; } if (file.isDirectory()) { - ALog.e(TAG, "上传失败,文件【" + filePath + "】不能死文件夹"); + ALog.e(TAG, "上传失败,文件【" + filePath + "】不能是文件夹"); return false; } return true;