|
@@ -170,12 +170,16 @@ static boxSaveFileManager * cur_boxSaveFileShareInstance = nil;
|
|
|
{
|
|
|
|
|
|
//1.修改数据库
|
|
|
- NSMutableArray *firstArr = [NSMutableArray arrayWithArray:_databaseArr[0]] ;
|
|
|
+ NSMutableArray *firstArr = [NSMutableArray arrayWithArray:_databaseArr[0]];
|
|
|
NSMutableArray *needUpdatArr = [NSMutableArray new];
|
|
|
|
|
|
for (downStatusDataModel*updataModel in downStatusMod.data) {
|
|
|
|
|
|
for (ShareFileDataModel* model in firstArr) {
|
|
|
+ //HLog(@"%@\n%@",updataModel.url,model.fileUrl);
|
|
|
+
|
|
|
+ //去掉空格判断
|
|
|
+ model.fileUrl = [model.fileUrl stringByReplacingOccurrencesOfString:@" " withString:@""];
|
|
|
if ([updataModel.url isEqualToString:model.fileUrl]) {
|
|
|
if (updataModel.curStatus == 0
|
|
|
|| updataModel.curStatus == 3) {
|
|
@@ -210,7 +214,9 @@ static boxSaveFileManager * cur_boxSaveFileShareInstance = nil;
|
|
|
|
|
|
if(needUpdatArr.count > 0){
|
|
|
[ShareFileDataModel bg_saveOrUpdateArrayAsync:needUpdatArr complete:^(BOOL isSuccess) {
|
|
|
-
|
|
|
+ if (isSuccess) {
|
|
|
+
|
|
|
+ }
|
|
|
}];
|
|
|
}
|
|
|
|