修复下载路径中?后面存在/导致的崩溃问题
This commit is contained in:
@@ -107,8 +107,8 @@ public class DbDataHelper {
|
|||||||
int lastIndex = url.lastIndexOf(File.separator);
|
int lastIndex = url.lastIndexOf(File.separator);
|
||||||
//去除url末尾携带的的参数
|
//去除url末尾携带的的参数
|
||||||
int endIndex = url.lastIndexOf("?");
|
int endIndex = url.lastIndexOf("?");
|
||||||
if(endIndex<0)endIndex=url.length();
|
|
||||||
|
|
||||||
|
if(endIndex<0||endIndex<lastIndex)endIndex=url.length();
|
||||||
entity.setFileName(url.substring(lastIndex + 1,endIndex));
|
entity.setFileName(url.substring(lastIndex + 1,endIndex));
|
||||||
entity.setGroupHash(groupHash);
|
entity.setGroupHash(groupHash);
|
||||||
entity.setGroupChild(true);
|
entity.setGroupChild(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user