Closed iStig closed 6 years ago
if (filename.length) { if (![self _fileWriteWithName:filename data:value]) {//写入文件 return NO; } if (![self _dbSaveWithKey:key value:value fileName:filename extendedData:extendedData]) {////写入sqlite [self _fileDeleteWithName:filename]; return NO; } return YES; }
发现问题了 if (fileName.length == 0) { sqlite3_bind_blob(stmt, 4, value.bytes, (int)value.length, 0); } else { sqlite3_bind_blob(stmt, 4, NULL, 0, 0); }
if (filename.length) { if (![self _fileWriteWithName:filename data:value]) {//写入文件 return NO; } if (![self _dbSaveWithKey:key value:value fileName:filename extendedData:extendedData]) {////写入sqlite [self _fileDeleteWithName:filename]; return NO; } return YES; }