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;