Commit da4cf1ac authored by 乔金柱's avatar 乔金柱

Merge branch 'lym/phobos' into 'master'

删除调试的log

See merge request !68
parents 9172ebcf 5968b67b
......@@ -68,13 +68,13 @@ static PhobosDataManager *dataManager;
- (void)remove {
bool status = [_squlitManager gm_deleteAllDataFromTable:KtableName];
bool status1 = [_squlitManager gm_deleteAllDataFromTable:KPageViewTableName];
NSLog(@"清空表格数状态-KtableName:%d KPageViewTableName:%d",status,status1);
// NSLog(@"清空表格数状态-KtableName:%d KPageViewTableName:%d",status,status1);
}
- (int)messageCount {
int count = [_squlitManager gm_tableItemCount:KtableName whereFormat:nil];
int count1 = [_squlitManager gm_tableItemCount:KPageViewTableName whereFormat:nil];
NSLog(@"数据总数:%d - KtableName:%d KPageViewTableName:%d", count + count1, count, count1);
// NSLog(@"数据总数:%d - KtableName:%d KPageViewTableName:%d", count + count1, count, count1);
return count;
}
......@@ -138,7 +138,7 @@ static PhobosDataManager *dataManager;
self.messageCont++;
[self disposeSendDataWithImmediately:NO];
}
NSLog(@"插入%@状态%d count:%d",squlitModel.phobos_type, insertType,_messageCont);
// NSLog(@"插入%@状态%d count:%d",squlitModel.phobos_type, insertType,_messageCont);
}
#pragma mark - 获取待发送数据并修改状态为“发送”
......@@ -188,7 +188,7 @@ static PhobosDataManager *dataManager;
}
- (void)sendModelArray:(NSArray<GMPhobosSqulitModel *> *)entities {
NSLog(@"发送*******%lld", entities.count);
// NSLog(@"发送*******%lld", entities.count);
[PhobosSendManager sendDataWithEntities:entities completion:^(NSArray<GMPhobosSqulitModel *> *finishEntities, NSInteger code) {
SEL selelct = code == 200 ? @selector(sendSuccess:) :@selector(sendError:);
[self performSelector:selelct onThread:_phobosThread withObject:finishEntities waitUntilDone:NO];
......@@ -200,7 +200,7 @@ static PhobosDataManager *dataManager;
for (GMPhobosSqulitModel *model in entities) {
NSString *whereStr = [NSString stringWithFormat:@"where message_item_id = '%@'", model.message_item_id];
bool status = [_squlitManager gm_deleteTable:model.table_name whereFormat:whereStr];
NSLog(@"发送数据成功-删除状态:%d", status);
// NSLog(@"发送数据成功-删除状态:%d", status);
}
}
......@@ -211,7 +211,7 @@ static PhobosDataManager *dataManager;
bool status = [_squlitManager gm_updateTable:model.table_name
dicOrModel: @{@"status":@(PhobosDataSendStatus_error)}
whereFormat:whereStr];
NSLog(@"发送失败后-修改状态:%d",status);
// NSLog(@"发送失败后-修改状态:%d",status);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment