iOS 文件下載谚咬、斷點(diǎn)下載

AFNetworking下載文件

NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
// 1. 創(chuàng)建會(huì)話管理者
AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration];
    
// 2. 創(chuàng)建下載路徑和請(qǐng)求對(duì)象
NSURL *URL = [NSURL URLWithString:@"http://dldir1.qq.com/qqfile/QQforMac/QQ_V5.4.0.dmg"];
NSURLRequest *request = [NSURLRequest requestWithURL:URL];
    
// 3.創(chuàng)建下載任務(wù)
/**
 * 第一個(gè)參數(shù) - request:請(qǐng)求對(duì)象
 * 第二個(gè)參數(shù) - progress:下載進(jìn)度block
 *      其中: downloadProgress.completedUnitCount:已經(jīng)完成的大小
 *            downloadProgress.totalUnitCount:文件的總大小
 * 第三個(gè)參數(shù) - destination:自動(dòng)完成文件剪切操作
 *      其中: 返回值:該文件應(yīng)該被剪切到哪里
 *            targetPath:臨時(shí)路徑 tmp NSURL
 *            response:響應(yīng)頭
 * 第四個(gè)參數(shù) - completionHandler:下載完成回調(diào)
 *      其中: filePath:真實(shí)路徑 == 第三個(gè)參數(shù)的返回值
 *            error:錯(cuò)誤信息
 */
NSURLSessionDownloadTask *downloadTask = [manager downloadTaskWithRequest:request progress:^(NSProgress *downloadProgress) {
        
    // 下載進(jìn)度
    self.progressView.progress = 1.0 * downloadProgress.completedUnitCount / downloadProgress.totalUnitCount;
    self.progressLabel.text = [NSString stringWithFormat:@"當(dāng)前下載進(jìn)度:%.2f%%",100.0 * downloadProgress.completedUnitCount / downloadProgress.totalUnitCount];
        
} destination:^NSURL *(NSURL *targetPath, NSURLResponse *response) {
        
    NSURL *path = [[NSFileManager defaultManager] URLForDirectory:NSDocumentDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:NO error:nil];
    return [path URLByAppendingPathComponent:@"QQ_V5.4.0.dmg"]; 
      
    } completionHandler:^(NSURLResponse *response, NSURL *filePath, NSError *error) {        
    NSLog(@"File downloaded to: %@", filePath);
}];

// 4. 開啟下載任務(wù)
[downloadTask resume];

AFNetworking斷點(diǎn)下載横殴,離線下載

@interface ViewController ()

/** 下載進(jìn)度條 */
@property (weak, nonatomic) IBOutlet UIProgressView *progressView;
/** 下載進(jìn)度條Label */
@property (weak, nonatomic) IBOutlet UILabel *progressLabel;

/** AFNetworking斷點(diǎn)下載(支持離線)需用到的屬性 **********/
/** 文件的總長(zhǎng)度 */
@property (nonatomic, assign) NSInteger fileLength;
/** 當(dāng)前下載長(zhǎng)度 */
@property (nonatomic, assign) NSInteger currentLength;
/** 文件句柄對(duì)象 */
@property (nonatomic, strong) NSFileHandle *fileHandle;

/** 下載任務(wù) */
@property (nonatomic, strong) NSURLSessionDataTask *downloadTask;
/* AFURLSessionManager */
@property (nonatomic, strong) AFURLSessionManager *manager;

@end

/**
 * manager的懶加載
 */
- (AFURLSessionManager *)manager {
    if (!_manager) {
        NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
        // 1. 創(chuàng)建會(huì)話管理者
        _manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration];
    }
    return _manager;
}

/**
 * downloadTask的懶加載
 */
- (NSURLSessionDataTask *)downloadTask {
    if (!_downloadTask) {
        // 創(chuàng)建下載URL
        NSURL *url = [NSURL URLWithString:@"http://dldir1.qq.com/qqfile/QQforMac/QQ_V5.4.0.dmg"];
        
        // 2.創(chuàng)建request請(qǐng)求
        NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
        
        // 設(shè)置HTTP請(qǐng)求頭中的Range
        NSString *range = [NSString stringWithFormat:@"bytes=%zd-", self.currentLength];
        [request setValue:range forHTTPHeaderField:@"Range"];
        
        __weak typeof(self) weakSelf = self;
        _downloadTask = [self.manager dataTaskWithRequest:request completionHandler:^(NSURLResponse * _Nonnull response, id  _Nullable responseObject, NSError * _Nullable error) {
            NSLog(@"dataTaskWithRequest");
            
            // 清空長(zhǎng)度
            weakSelf.currentLength = 0;
            weakSelf.fileLength = 0;
            
            // 關(guān)閉fileHandle
            [weakSelf.fileHandle closeFile];
            weakSelf.fileHandle = nil;
            
        }];
        
        [self.manager setDataTaskDidReceiveResponseBlock:^NSURLSessionResponseDisposition(NSURLSession * _Nonnull session, NSURLSessionDataTask * _Nonnull dataTask, NSURLResponse * _Nonnull response) {
            NSLog(@"NSURLSessionResponseDisposition");
            
            // 獲得下載文件的總長(zhǎng)度:請(qǐng)求下載的文件長(zhǎng)度 + 當(dāng)前已經(jīng)下載的文件長(zhǎng)度
            weakSelf.fileLength = response.expectedContentLength + self.currentLength;
            
            // 沙盒文件路徑
            NSString *path = [[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:@"QQ_V5.4.0.dmg"];
            
            NSLog(@"File downloaded to: %@",path);
            
            // 創(chuàng)建一個(gè)空的文件到沙盒中
            NSFileManager *manager = [NSFileManager defaultManager];
            
            if (![manager fileExistsAtPath:path]) {
                // 如果沒有下載文件的話赚导,就創(chuàng)建一個(gè)文件茬缩。如果有下載文件的話,則不用重新創(chuàng)建(不然會(huì)覆蓋掉之前的文件)
                [manager createFileAtPath:path contents:nil attributes:nil];
            }
            
            // 創(chuàng)建文件句柄
            weakSelf.fileHandle = [NSFileHandle fileHandleForWritingAtPath:path];
            
            // 允許處理服務(wù)器的響應(yīng)吼旧,才會(huì)繼續(xù)接收服務(wù)器返回的數(shù)據(jù)
            return NSURLSessionResponseAllow;
        }];
        
        [self.manager setDataTaskDidReceiveDataBlock:^(NSURLSession * _Nonnull session, NSURLSessionDataTask * _Nonnull dataTask, NSData * _Nonnull data) {
            NSLog(@"setDataTaskDidReceiveDataBlock");
            
            // 指定數(shù)據(jù)的寫入位置 -- 文件內(nèi)容的最后面
            [weakSelf.fileHandle seekToEndOfFile];
            
            // 向沙盒寫入數(shù)據(jù)
            [weakSelf.fileHandle writeData:data];
            
            // 拼接文件總長(zhǎng)度
            weakSelf.currentLength += data.length;
            
            // 獲取主線程凰锡,不然無法正確顯示進(jìn)度。
            NSOperationQueue* mainQueue = [NSOperationQueue mainQueue];
            [mainQueue addOperationWithBlock:^{
                // 下載進(jìn)度
                if (weakSelf.fileLength == 0) {
                    weakSelf.progressView.progress = 0.0;
                    weakSelf.progressLabel.text = [NSString stringWithFormat:@"當(dāng)前下載進(jìn)度:00.00%%"];
                } else {
                    weakSelf.progressView.progress =  1.0 * weakSelf.currentLength / weakSelf.fileLength;
                    weakSelf.progressLabel.text = [NSString stringWithFormat:@"當(dāng)前下載進(jìn)度:%.2f%%",100.0 * weakSelf.currentLength / weakSelf.fileLength];
                }
               
            }];
        }];
    }
    return _downloadTask;
}
/**
 * 點(diǎn)擊按鈕 -- 使用AFNetworking斷點(diǎn)下載(支持離線)
 */
- (IBAction)OfflinResumeDownloadBtnClicked:(UIButton *)sender {
    // 按鈕狀態(tài)取反
    sender.selected = !sender.isSelected;
    
    if (sender.selected) { // [開始下載/繼續(xù)下載]
        // 沙盒文件路徑
        NSString *path = [[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:@"QQ_V5.4.0.dmg"];
        
        NSInteger currentLength = [self fileLengthForPath:path];
        if (currentLength > 0) {  // [繼續(xù)下載]
            self.currentLength = currentLength;
        }
        
        [self.downloadTask resume];
        
    } else {
        [self.downloadTask suspend];
        self.downloadTask = nil;
    }
}

/**
 * 獲取已下載的文件大小
 */
- (NSInteger)fileLengthForPath:(NSString *)path {
    NSInteger fileLength = 0;
    NSFileManager *fileManager = [[NSFileManager alloc] init]; // default is not thread safe
    if ([fileManager fileExistsAtPath:path]) {
        NSError *error = nil;
        NSDictionary *fileDict = [fileManager attributesOfItemAtPath:path error:&error];
        if (!error && fileDict) {
            fileLength = [fileDict fileSize];
        }
    }
    return fileLength;
}

直接下載NSData

// 創(chuàng)建下載路徑
NSURL *url = [NSURL URLWithString:@"http://pics.sc.chinaz.com/files/pic/pic9/201508/apic14052.jpg"];

// 使用NSData的dataWithContentsOfURL:方法下載
NSData *data = [NSData dataWithContentsOfURL:url];

// 如果下載的是將要顯示的圖片黍少,則可以顯示出來
// 如果下載的是其他文件寡夹,然后可以將data轉(zhuǎn)存為本地文件

NSURLSession下載
如果想要監(jiān)聽下載進(jìn)度,我們就需要用到NSURLSessionDownloadDelegate厂置。
具體使用方式就是使用代理的方法創(chuàng)建下載任務(wù)菩掏,并且實(shí)現(xiàn)對(duì)應(yīng)的代理方法。

// 創(chuàng)建下載路徑
NSURL *url = [NSURL URLWithString:@"http://dldir1.qq.com/qqfile/QQforMac/QQ_V5.4.0.dmg"];
    
// 創(chuàng)建NSURLSession對(duì)象昵济,并設(shè)計(jì)代理方法智绸。其中NSURLSessionConfiguration為默認(rèn)配置
NSURLSession *session = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration] delegate:self delegateQueue:[NSOperationQueue mainQueue]];
    
// 創(chuàng)建任務(wù)
NSURLSessionDownloadTask *downloadTask = [session downloadTaskWithURL:url];
    
// 開始任務(wù)
[downloadTask resume];
#pragma mark <NSURLSessionDownloadDelegate> 實(shí)現(xiàn)方法
/**
 *  文件下載完畢時(shí)調(diào)用
 */
- (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask
didFinishDownloadingToURL:(NSURL *)location
{
    // 文件將要移動(dòng)到的指定目錄
    NSString *documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject];
    
    // 新文件路徑
    NSString *newFilePath = [documentsPath stringByAppendingPathComponent:@"QQ_V5.4.0.dmg"];
    
    NSLog(@"File downloaded to: %@",newFilePath);
    
    // 移動(dòng)文件到新路徑
    [[NSFileManager defaultManager] moveItemAtPath:location.path toPath:newFilePath error:nil];
    
}

/**
 *  每次寫入數(shù)據(jù)到臨時(shí)文件時(shí),就會(huì)調(diào)用一次這個(gè)方法访忿∏评酰可在這里獲得下載進(jìn)度
 *
 *  @param bytesWritten              這次寫入的文件大小
 *  @param totalBytesWritten         已經(jīng)寫入沙盒的文件大小
 *  @param totalBytesExpectedToWrite 文件總大小
 */
- (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask
      didWriteData:(int64_t)bytesWritten
 totalBytesWritten:(int64_t)totalBytesWritten
totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite
{
    
    // 下載進(jìn)度
    self.progressView.progress = 1.0 * totalBytesWritten / totalBytesExpectedToWrite;
    self.progressLabel.text = [NSString stringWithFormat:@"當(dāng)前下載進(jìn)度:%.2f%%",100.0 * totalBytesWritten / totalBytesExpectedToWrite];
}

/**
 *  恢復(fù)下載后調(diào)用
 */
- (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask
 didResumeAtOffset:(int64_t)fileOffset
expectedTotalBytes:(int64_t)expectedTotalBytes
{
    
}

NSURLSession 斷點(diǎn)下載,不支持離線
NSURLSession斷點(diǎn)下載(不支持離線)實(shí)現(xiàn)斷點(diǎn)下載的步驟如下:

在實(shí)現(xiàn)斷點(diǎn)下載的[開始/暫停]按鈕中添加以下步驟:
設(shè)置一個(gè)downloadTask海铆、session以及resumeData的全局變量
如果開始下載迹恐,就創(chuàng)建一個(gè)新的downloadTask,并啟動(dòng)下載
如果暫停下載卧斟,調(diào)用取消下載的函數(shù)殴边,并在block中保存本次的resumeData到全局resumeData中。
如果恢復(fù)下載珍语,將上次保存的resumeData加入到任務(wù)中锤岸,并啟動(dòng)下載。

@interface ViewController () <NSURLSessionDownloadDelegate>

/** 下載進(jìn)度條 */
@property (weak, nonatomic) IBOutlet UIProgressView *progressView;
/** 下載進(jìn)度條Label */
@property (weak, nonatomic) IBOutlet UILabel *progressLabel;

/** NSURLSession斷點(diǎn)下載(不支持離線)需用到的屬性 **********/
/** 下載任務(wù) */
@property (nonatomic, strong) NSURLSessionDownloadTask *downloadTask;
/** 保存上次的下載信息 */
@property (nonatomic, strong) NSData *resumeData;

/** session */
@property (nonatomic, strong) NSURLSession *session;

@end
/**
 * 點(diǎn)擊按鈕 -- 使用NSURLSession斷點(diǎn)下載(不支持離線)
 */
- (IBAction)resumeDownloadBtnClicked:(UIButton *)sender {
    // 按鈕狀態(tài)取反
    sender.selected = !sender.isSelected;
    
    if (nil == self.downloadTask) { // [開始下載/繼續(xù)下載]
        if (self.resumeData) { // [繼續(xù)下載]
            // 傳入上次暫停下載返回的數(shù)據(jù)板乙,就可以恢復(fù)下載
            self.downloadTask = [self.session downloadTaskWithResumeData:self.resumeData];
            
            // 開始任務(wù)
            [self.downloadTask resume];
            
            self.resumeData = nil;
        }else{ // [開始下載]:從0開始下載
            NSURL* url = [NSURL URLWithString:@"http://dldir1.qq.com/qqfile/QQforMac/QQ_V5.4.0.dmg"];
            
            // 創(chuàng)建任務(wù)
            self.downloadTask = [self.session downloadTaskWithURL:url];
            
            // 開始任務(wù)
            [self.downloadTask resume];
        }
        
    }else{ // [暫停下載]
        __weak typeof(self) weakSelf = self;
        [self.downloadTask cancelByProducingResumeData:^(NSData *resumeData) {
            // resumeData:包含了繼續(xù)下載的位置\下載的路徑
            weakSelf.resumeData = resumeData;
            weakSelf.downloadTask = nil;
        }];
    }
}

NSURLSession(斷點(diǎn)下載 | 支持離線)

@interface ViewController () <NSURLSessionDataDelegate>

/** 下載進(jìn)度條 */
@property (weak, nonatomic) IBOutlet UIProgressView *progressView;
/** 下載進(jìn)度條Label */
@property (weak, nonatomic) IBOutlet UILabel *progressLabel;

/** NSURLSession斷點(diǎn)下載(支持離線)需用到的屬性 **********/
/** 文件的總長(zhǎng)度 */
@property (nonatomic, assign) NSInteger fileLength;
/** 當(dāng)前下載長(zhǎng)度 */
@property (nonatomic, assign) NSInteger currentLength;
/** 文件句柄對(duì)象 */
@property (nonatomic, strong) NSFileHandle *fileHandle;

/** 下載任務(wù) */
@property (nonatomic, strong) NSURLSessionDataTask *downloadTask;
/** session */
@property (nonatomic, strong) NSURLSession *session;

@end
/**
 * session的懶加載
 */
- (NSURLSession *)session
{
    if (!_session) {
        _session = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration] delegate:self delegateQueue:[NSOperationQueue mainQueue]];
    }
    return _session;
}

/**
 * downloadTask的懶加載是偷,這里設(shè)置請(qǐng)求頭中的Range
 */
- (NSURLSessionDataTask *)downloadTask {
    if (!_downloadTask) {
        // 創(chuàng)建下載URL
        NSURL *url = [NSURL URLWithString:@"http://dldir1.qq.com/qqfile/QQforMac/QQ_V5.4.0.dmg"];
        
        // 2.創(chuàng)建request請(qǐng)求
        NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
        
        // 設(shè)置HTTP請(qǐng)求頭中的Range
        NSString *range = [NSString stringWithFormat:@"bytes=%zd-", self.currentLength];
        [request setValue:range forHTTPHeaderField:@"Range"];
        
        // 3. 下載
        _downloadTask = [self.session dataTaskWithRequest:request];
    }
    return _downloadTask;
}

/**
 * 點(diǎn)擊按鈕 -- 使用NSURLSession斷點(diǎn)下載(支持離線)
 */
- (IBAction)OfflinResumeDownloadBtnClicked:(UIButton *)sender {
    // 按鈕狀態(tài)取反
    sender.selected = !sender.isSelected;
    
    if (sender.selected) { // [開始下載/繼續(xù)下載]
        // 沙盒文件路徑
        NSString *path = [[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:@"QQ_V5.4.0.dmg"];
        
        NSInteger currentLength = [self fileLengthForPath:path];
        if (currentLength > 0) {  // [繼續(xù)下載]
            self.currentLength = currentLength;
        }
        
        [self.downloadTask resume];
        
    } else {
        [self.downloadTask suspend];
        self.downloadTask = nil;
    }
}

/**
 * 獲取已下載的文件大小
 */
- (NSInteger)fileLengthForPath:(NSString *)path {
    NSInteger fileLength = 0;
    NSFileManager *fileManager = [[NSFileManager alloc] init]; // default is not thread safe
    if ([fileManager fileExistsAtPath:path]) {
        NSError *error = nil;
        NSDictionary *fileDict = [fileManager attributesOfItemAtPath:path error:&error];
        if (!error && fileDict) {
            fileLength = [fileDict fileSize];
        }
    }
    return fileLength;
}
#pragma mark - <NSURLSessionDataDelegate> 實(shí)現(xiàn)方法
/**
 * 接收到響應(yīng)的時(shí)候:創(chuàng)建一個(gè)空的沙盒文件
 */
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask didReceiveResponse:(NSURLResponse *)response completionHandler:(void (^)(NSURLSessionResponseDisposition))completionHandler
{
    // 獲得下載文件的總長(zhǎng)度:請(qǐng)求下載的文件長(zhǎng)度 + 當(dāng)前已經(jīng)下載的文件長(zhǎng)度
    self.fileLength = response.expectedContentLength + self.currentLength;
    
    // 沙盒文件路徑
    NSString *path = [[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:@"QQ_V5.4.0.dmg"];
    
    NSLog(@"File downloaded to: %@",path);
    
    // 創(chuàng)建一個(gè)空的文件到沙盒中
    NSFileManager *manager = [NSFileManager defaultManager];
    
    if (![manager fileExistsAtPath:path]) {
        // 如果沒有下載文件的話,就創(chuàng)建一個(gè)文件募逞。如果有下載文件的話蛋铆,則不用重新創(chuàng)建(不然會(huì)覆蓋掉之前的文件)
        [manager createFileAtPath:path contents:nil attributes:nil];
    }
    
    // 創(chuàng)建文件句柄
    self.fileHandle = [NSFileHandle fileHandleForWritingAtPath:path];

    // 允許處理服務(wù)器的響應(yīng),才會(huì)繼續(xù)接收服務(wù)器返回的數(shù)據(jù)
    completionHandler(NSURLSessionResponseAllow);
}

/**
 * 接收到具體數(shù)據(jù):把數(shù)據(jù)寫入沙盒文件中
 */
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask didReceiveData:(NSData *)data
{
    // 指定數(shù)據(jù)的寫入位置 -- 文件內(nèi)容的最后面
    [self.fileHandle seekToEndOfFile];
    
    // 向沙盒寫入數(shù)據(jù)
    [self.fileHandle writeData:data];
    
    // 拼接文件總長(zhǎng)度
    self.currentLength += data.length;
    
    NSLog(@"%ld",self.currentLength);
    
    __weak typeof(self) weakSelf = self;
    // 獲取主線程放接,不然無法正確顯示進(jìn)度刺啦。
    NSOperationQueue* mainQueue = [NSOperationQueue mainQueue];
    [mainQueue addOperationWithBlock:^{
        // 下載進(jìn)度
        weakSelf.progressView.progress =  1.0 * weakSelf.currentLength / weakSelf.fileLength;
        weakSelf.progressLabel.text = [NSString stringWithFormat:@"當(dāng)前下載進(jìn)度:%.2f%%",100.0 * self.currentLength / self.fileLength];
    }];
}

/**
 *  下載完文件之后調(diào)用:關(guān)閉文件、清空長(zhǎng)度
 */
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error
{
    // 關(guān)閉fileHandle
    [self.fileHandle closeFile];
    self.fileHandle = nil;
    
    // 清空長(zhǎng)度
    self.currentLength = 0;
    self.fileLength = 0;
}
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末透乾,一起剝皮案震驚了整個(gè)濱河市洪燥,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌乳乌,老刑警劉巖捧韵,帶你破解...
    沈念sama閱讀 219,270評(píng)論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異汉操,居然都是意外死亡再来,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,489評(píng)論 3 395
  • 文/潘曉璐 我一進(jìn)店門磷瘤,熙熙樓的掌柜王于貴愁眉苦臉地迎上來芒篷,“玉大人,你說我怎么就攤上這事采缚≌肼” “怎么了?”我有些...
    開封第一講書人閱讀 165,630評(píng)論 0 356
  • 文/不壞的土叔 我叫張陵扳抽,是天一觀的道長(zhǎng)篡帕。 經(jīng)常有香客問我,道長(zhǎng)贸呢,這世上最難降的妖魔是什么镰烧? 我笑而不...
    開封第一講書人閱讀 58,906評(píng)論 1 295
  • 正文 為了忘掉前任,我火速辦了婚禮楞陷,結(jié)果婚禮上怔鳖,老公的妹妹穿的比我還像新娘。我一直安慰自己固蛾,他們只是感情好结执,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,928評(píng)論 6 392
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著魏铅,像睡著了一般昌犹。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上览芳,一...
    開封第一講書人閱讀 51,718評(píng)論 1 305
  • 那天斜姥,我揣著相機(jī)與錄音,去河邊找鬼沧竟。 笑死铸敏,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的悟泵。 我是一名探鬼主播杈笔,決...
    沈念sama閱讀 40,442評(píng)論 3 420
  • 文/蒼蘭香墨 我猛地睜開眼,長(zhǎng)吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼糕非!你這毒婦竟也來了蒙具?” 一聲冷哼從身側(cè)響起球榆,我...
    開封第一講書人閱讀 39,345評(píng)論 0 276
  • 序言:老撾萬榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎禁筏,沒想到半個(gè)月后持钉,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,802評(píng)論 1 317
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡篱昔,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,984評(píng)論 3 337
  • 正文 我和宋清朗相戀三年每强,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片州刽。...
    茶點(diǎn)故事閱讀 40,117評(píng)論 1 351
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡空执,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出穗椅,到底是詐尸還是另有隱情辨绊,我是刑警寧澤,帶...
    沈念sama閱讀 35,810評(píng)論 5 346
  • 正文 年R本政府宣布匹表,位于F島的核電站邢羔,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏桑孩。R本人自食惡果不足惜拜鹤,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,462評(píng)論 3 331
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望流椒。 院中可真熱鬧敏簿,春花似錦、人聲如沸宣虾。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,011評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽绣硝。三九已至蜻势,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間鹉胖,已是汗流浹背握玛。 一陣腳步聲響...
    開封第一講書人閱讀 33,139評(píng)論 1 272
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留甫菠,地道東北人挠铲。 一個(gè)月前我還...
    沈念sama閱讀 48,377評(píng)論 3 373
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像寂诱,于是被迫代替她去往敵國和親拂苹。 傳聞我的和親對(duì)象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,060評(píng)論 2 355

推薦閱讀更多精彩內(nèi)容