添加文件名适配器接口,修复group中useServerFileName未同步到子task的问题
This commit is contained in:
@@ -105,7 +105,11 @@ public class DbDataHelper {
|
||||
entity.setUrl(url);
|
||||
entity.setFilePath(groupHash + "_" + i);
|
||||
int lastIndex = url.lastIndexOf(File.separator);
|
||||
entity.setFileName(url.substring(lastIndex + 1));
|
||||
//去除url末尾携带的的参数
|
||||
int endIndex = url.lastIndexOf("?");
|
||||
if(endIndex<0)endIndex=url.length();
|
||||
|
||||
entity.setFileName(url.substring(lastIndex + 1,endIndex));
|
||||
entity.setGroupHash(groupHash);
|
||||
entity.setGroupChild(true);
|
||||
list.add(entity);
|
||||
|
||||
Reference in New Issue
Block a user