GCD網(wǎng)絡(luò)請求:無序(異步+并發(fā))有序(異步+串行)

GCD:異步+并發(fā)(信號量)

requestNetworking要保證請求完成才可以再次請求加個判斷:isFinishLoading

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [self requestNetworking];
}

-(void)requestNetworking{
    dispatch_group_t dispatchGroup = dispatch_group_create();
    dispatch_queue_t dispatchQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);

    //第一個網(wǎng)絡(luò)請求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group1--------%@",[NSThread currentThread]);
        [self test1];
    });
    
    //第二個網(wǎng)絡(luò)請求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group2--------%@",[NSThread currentThread]);
        [self test2];
    });
    
    //第三個網(wǎng)絡(luò)請求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group3--------%@",[NSThread currentThread]);
        [self test3];
    });
    
    //第四個網(wǎng)絡(luò)請求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group4--------%@",[NSThread currentThread]);
        [self test4];
    });
    
    //第五個網(wǎng)絡(luò)請求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group5--------%@",[NSThread currentThread]);
        [self test5];
    });
    
    dispatch_group_notify(dispatchGroup, dispatch_get_main_queue(), ^{
        NSLog(@"--------updateUi--------%@",[NSThread currentThread]);
    });
}

-(void)test1{
    dispatch_semaphore_t semaphore = dispatch_semaphore_create(0);
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://www.baidu.com"]];
    NSURLSessionDownloadTask *task = [[NSURLSession sharedSession] downloadTaskWithRequest:request completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
        NSLog(@"第一步網(wǎng)絡(luò)請求完成");
        dispatch_semaphore_signal(semaphore);
    }];
    [task resume];
    dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER);
}

-(void)test2{
    dispatch_semaphore_t semaphore = dispatch_semaphore_create(0);
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://www.jisilu.cn"]];
    NSURLSessionDownloadTask *task = [[NSURLSession sharedSession] downloadTaskWithRequest:request completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
        NSLog(@"第二步網(wǎng)絡(luò)請求完成");
        dispatch_semaphore_signal(semaphore);
    }];
    [task resume];
    dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER);
}

-(void)test3{
    dispatch_semaphore_t semaphore = dispatch_semaphore_create(0);
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://www.hao123.com"]];
    NSURLSessionDownloadTask *task = [[NSURLSession sharedSession] downloadTaskWithRequest:request completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
        NSLog(@"第三步網(wǎng)絡(luò)請求完成");
        dispatch_semaphore_signal(semaphore);
    }];
    [task resume];
    dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER);
}

-(void)test4{
    dispatch_semaphore_t semaphore = dispatch_semaphore_create(0);
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://developers.adnet.qq.com/doc/ios/guide"]];
    NSURLSessionDownloadTask *task = [[NSURLSession sharedSession] downloadTaskWithRequest:request completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
        NSLog(@"第四步網(wǎng)絡(luò)請求完成");
        dispatch_semaphore_signal(semaphore);
    }];
    [task resume];
    dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER);
}

-(void)test5{
    dispatch_semaphore_t semaphore = dispatch_semaphore_create(0);
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://bugly.qq.com/v2"]];
    NSURLSessionDownloadTask *task = [[NSURLSession sharedSession] downloadTaskWithRequest:request completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
        NSLog(@"第五步網(wǎng)絡(luò)請求完成");
        dispatch_semaphore_signal(semaphore);
    }];
    [task resume];
    dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER);
}
2023-04-28 11:30:52.339737+0800 text_04[3758:109469] --------group1--------<NSThread: 0x60000024c740>{number = 13, name = (null)}
2023-04-28 11:30:52.339833+0800 text_04[3758:109451] --------group2--------<NSThread: 0x600000247500>{number = 9, name = (null)}
2023-04-28 11:30:52.339854+0800 text_04[3758:109449] --------group3--------<NSThread: 0x60000021c6c0>{number = 7, name = (null)}
2023-04-28 11:30:52.339864+0800 text_04[3758:109470] --------group4--------<NSThread: 0x600000250540>{number = 15, name = (null)}
2023-04-28 11:30:52.339890+0800 text_04[3758:109453] --------group5--------<NSThread: 0x60000025df80>{number = 3, name = (null)}
2023-04-28 11:30:52.364842+0800 text_04[3758:109454] 第一步網(wǎng)絡(luò)請求完成
2023-04-28 11:30:52.399705+0800 text_04[3758:109456] 第五步網(wǎng)絡(luò)請求完成
2023-04-28 11:30:52.428851+0800 text_04[3758:109456] 第四步網(wǎng)絡(luò)請求完成
2023-04-28 11:30:52.430836+0800 text_04[3758:109470] 第二步網(wǎng)絡(luò)請求完成
2023-04-28 11:30:53.123856+0800 text_04[3758:109451] 第三步網(wǎng)絡(luò)請求完成
2023-04-28 11:30:53.124068+0800 text_04[3758:109415] --------updateUi--------<_NSMainThread: 0x600000218440>{number = 1, name = main}

在這個示例中,我們使用dispatch_group_async()函數(shù)將每個請求添加到dispatch_group_t中。對于每個請求,我們在一個dispatch_queue_t中執(zhí)行它,并使用dispatch_semaphore_t在請求完成時釋放信號量。我們在每個請求的末尾使用dispatch_semaphore_wait()函數(shù)等待信號量,以確保在處理完每個請求之前不會離開dispatch_group_t。最后,我們調(diào)用dispatch_group_notify()函數(shù)來指定所有請求完成后要執(zhí)行的代碼塊。

在這個示例中,dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER):放在子線程,不會阻塞主線程,可以執(zhí)行其他操作。


GCD:異步+并發(fā)(dispatch_group_enter)推薦用這個目前項目在使用

requestNetworking要保證請求完成才可以再次請求加個判斷:isFinishLoading

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [self requestNetworking];
}

-(void)requestNetworking{
    dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
    self.group = dispatch_group_create();

    //第一個網(wǎng)絡(luò)請求
    dispatch_group_enter(self.group);
    dispatch_group_async(self.group, queue, ^{
        NSLog(@"--------group1--------%@",[NSThread currentThread]);
        [self test1];
    });

    //第二個網(wǎng)絡(luò)請求
    dispatch_group_enter(self.group);
    dispatch_group_async(self.group, queue, ^{
        NSLog(@"--------group2--------%@",[NSThread currentThread]);
        [self test2];
    });

    //第三個網(wǎng)絡(luò)請求
    dispatch_group_enter(self.group);
    dispatch_group_async(self.group, queue, ^{
        NSLog(@"--------group3--------%@",[NSThread currentThread]);
        [self test3];
    });

    //第四個網(wǎng)絡(luò)請求
    dispatch_group_enter(self.group);
    dispatch_group_async(self.group, queue, ^{
        NSLog(@"--------group4--------%@",[NSThread currentThread]);
        [self test4];
    });

    //第五個網(wǎng)絡(luò)請求
    dispatch_group_enter(self.group);
    dispatch_group_async(self.group, queue, ^{
        NSLog(@"--------group5--------%@",[NSThread currentThread]);
        [self test5];
    });

    dispatch_group_notify(self.group, dispatch_get_main_queue(), ^{
        NSLog(@"--------updateUi--------%@",[NSThread currentThread]);
    });
}

-(void)test1{
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://www.baidu.com"]];
    NSURLSessionDownloadTask *task = [[NSURLSession sharedSession] downloadTaskWithRequest:request completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
        NSLog(@"第一步網(wǎng)絡(luò)請求完成");
        dispatch_group_leave(self.group);
    }];
    [task resume];
}

-(void)test2{
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://www.jisilu.cn"]];
    NSURLSessionDownloadTask *task = [[NSURLSession sharedSession] downloadTaskWithRequest:request completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
        NSLog(@"第二步網(wǎng)絡(luò)請求完成");
        dispatch_group_leave(self.group);
    }];
    [task resume];
}

-(void)test3{
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://www.hao123.com"]];
    NSURLSessionDownloadTask *task = [[NSURLSession sharedSession] downloadTaskWithRequest:request completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
        NSLog(@"第三步網(wǎng)絡(luò)請求完成");
        dispatch_group_leave(self.group);
    }];
    [task resume];
}

-(void)test4{
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://developers.adnet.qq.com/doc/ios/guide"]];
    NSURLSessionDownloadTask *task = [[NSURLSession sharedSession] downloadTaskWithRequest:request completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
        NSLog(@"第四步網(wǎng)絡(luò)請求完成");
        dispatch_group_leave(self.group);
    }];
    [task resume];
}

-(void)test5{
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://bugly.qq.com/v2"]];
    NSURLSessionDownloadTask *task = [[NSURLSession sharedSession] downloadTaskWithRequest:request completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
        NSLog(@"第五步網(wǎng)絡(luò)請求完成");
        dispatch_group_leave(self.group);
    }];
    [task resume];
}
2023-04-28 11:28:50.619371+0800 text_04[3663:105006] --------updateUi--------<_NSMainThread: 0x60000227c440>{number = 1, name = main}
2023-04-28 11:28:50.619658+0800 text_04[3663:105186] --------group1--------<NSThread: 0x600002271e00>{number = 7, name = (null)}
2023-04-28 11:28:50.619718+0800 text_04[3663:105187] --------group2--------<NSThread: 0x600002270f40>{number = 4, name = (null)}
2023-04-28 11:28:50.619749+0800 text_04[3663:105191] --------group3--------<NSThread: 0x600002220300>{number = 5, name = (null)}
2023-04-28 11:28:50.619763+0800 text_04[3663:105188] --------group4--------<NSThread: 0x60000221ea00>{number = 9, name = (null)}
2023-04-28 11:28:50.619794+0800 text_04[3663:105190] --------group5--------<NSThread: 0x600002230c80>{number = 3, name = (null)}
2023-04-28 11:28:50.652971+0800 text_04[3663:105187] 第一步網(wǎng)絡(luò)請求完成
2023-04-28 11:28:50.704591+0800 text_04[3663:105190] 第四步網(wǎng)絡(luò)請求完成
2023-04-28 11:28:50.709022+0800 text_04[3663:105190] 第二步網(wǎng)絡(luò)請求完成
2023-04-28 11:28:50.752817+0800 text_04[3663:105186] 第五步網(wǎng)絡(luò)請求完成
2023-04-28 11:28:51.462473+0800 text_04[3663:105187] 第三步網(wǎng)絡(luò)請求完成
2023-04-28 11:28:51.462692+0800 text_04[3663:105006] --------updateUi--------<_NSMainThread: 0x60000227c440>{number = 1, name = main}

在上面的代碼中,我們首先創(chuàng)建了一個dispatch_group_t類型的組,并將它添加到全局隊列中。然后,我們使用dispatch_group_enter函數(shù)進(jìn)入組,并分別發(fā)起了三個異步網(wǎng)絡(luò)請求,并在每個請求完成后打印出完成信息,并調(diào)用dispatch_group_leave函數(shù)以便離開組。最后,我們使用dispatch_group_notify函數(shù)在所有請求完成后打印出“所有異步網(wǎng)絡(luò)請求已完成”的信息。


GCD:異步+串行(信號量,開子線程按順序執(zhí)行)

requestNetworking要保證請求完成才可以再次請求加個判斷:isFinishLoading

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [self requestNetworking];
}

-(void)requestNetworking{
    dispatch_group_t dispatchGroup = dispatch_group_create();
    dispatch_queue_t dispatchQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
    self.semaphore = dispatch_semaphore_create(0);

    //第一個網(wǎng)絡(luò)請求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group1--------%@",[NSThread currentThread]);
        [self test1];
    });
    dispatch_semaphore_wait(self.semaphore, DISPATCH_TIME_FOREVER);

    //第二個網(wǎng)絡(luò)請求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group2--------%@",[NSThread currentThread]);
        [self test2];
    });
    dispatch_semaphore_wait(self.semaphore, DISPATCH_TIME_FOREVER);

    //第三個網(wǎng)絡(luò)請求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group3--------%@",[NSThread currentThread]);
        [self test3];
    });
    dispatch_semaphore_wait(self.semaphore, DISPATCH_TIME_FOREVER);

    //第四個網(wǎng)絡(luò)請求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group4--------%@",[NSThread currentThread]);
        [self test4];
    });
    dispatch_semaphore_wait(self.semaphore, DISPATCH_TIME_FOREVER);

    //第五個網(wǎng)絡(luò)請求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group5--------%@",[NSThread currentThread]);
        [self test5];
    });
    dispatch_semaphore_wait(self.semaphore, DISPATCH_TIME_FOREVER);

    dispatch_group_notify(dispatchGroup, dispatch_get_main_queue(), ^{
        NSLog(@"--------updateUi--------%@",[NSThread currentThread]);
    });
}

-(void)test1{
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://www.baidu.com"]];
    NSURLSessionDownloadTask *task = [[NSURLSession sharedSession] downloadTaskWithRequest:request completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
        NSLog(@"第一步網(wǎng)絡(luò)請求完成");
        dispatch_semaphore_signal(self.semaphore);
    }];
    [task resume];
}

-(void)test2{
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://www.jisilu.cn"]];
    NSURLSessionDownloadTask *task = [[NSURLSession sharedSession] downloadTaskWithRequest:request completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
        NSLog(@"第二步網(wǎng)絡(luò)請求完成");
        dispatch_semaphore_signal(self.semaphore);
    }];
    [task resume];
}

-(void)test3{
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://www.hao123.com"]];
    NSURLSessionDownloadTask *task = [[NSURLSession sharedSession] downloadTaskWithRequest:request completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
        NSLog(@"第三步網(wǎng)絡(luò)請求完成");
        dispatch_semaphore_signal(self.semaphore);
    }];
    [task resume];
}

-(void)test4{
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://developers.adnet.qq.com/doc/ios/guide"]];
    NSURLSessionDownloadTask *task = [[NSURLSession sharedSession] downloadTaskWithRequest:request completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
        NSLog(@"第四步網(wǎng)絡(luò)請求完成");
        dispatch_semaphore_signal(self.semaphore);
    }];
    [task resume];
}

-(void)test5{
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://bugly.qq.com/v2"]];
    NSURLSessionDownloadTask *task = [[NSURLSession sharedSession] downloadTaskWithRequest:request completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
        NSLog(@"第五步網(wǎng)絡(luò)請求完成");
        dispatch_semaphore_signal(self.semaphore);
    }];
    [task resume];
}

2023-04-28 15:20:02.338944+0800 text_04[2325:54425] --------group1--------<NSThread: 0x600000dc4280>{number = 7, name = (null)}
2023-04-28 15:20:02.356631+0800 text_04[2325:54425] 第一步網(wǎng)絡(luò)請求完成
2023-04-28 15:20:02.356897+0800 text_04[2325:54422] --------group2--------<NSThread: 0x600000dc9140>{number = 9, name = (null)}
2023-04-28 15:20:02.439213+0800 text_04[2325:54425] 第二步網(wǎng)絡(luò)請求完成
2023-04-28 15:20:02.439444+0800 text_04[2325:54421] --------group3--------<NSThread: 0x600000dd5d00>{number = 3, name = (null)}
2023-04-28 15:20:03.513870+0800 text_04[2325:54421] 第三步網(wǎng)絡(luò)請求完成
2023-04-28 15:20:03.514117+0800 text_04[2325:54421] --------group4--------<NSThread: 0x600000dd5d00>{number = 3, name = (null)}
2023-04-28 15:20:03.552748+0800 text_04[2325:54421] 第四步網(wǎng)絡(luò)請求完成
2023-04-28 15:20:03.552924+0800 text_04[2325:54425] --------group5--------<NSThread: 0x600000dc4280>{number = 7, name = (null)}
2023-04-28 15:20:03.685218+0800 text_04[2325:54421] 第五步網(wǎng)絡(luò)請求完成
2023-04-28 15:20:03.685468+0800 text_04[2325:54236] --------updateUi--------<_NSMainThread: 0x600000d94440>{number = 1, name = main}

在上面的示例中,每個網(wǎng)絡(luò)請求都是異步執(zhí)行的,并按順序執(zhí)行。在每個網(wǎng)絡(luò)請求執(zhí)行完成后,都通過dispatch_semaphore_signal方法使dispatch_semaphore_t對象的計數(shù)器加1。在每個網(wǎng)絡(luò)請求執(zhí)行之前,都需要通過dispatch_semaphore_wait方法等待dispatch_semaphore_t對象的計數(shù)器達(dá)到相應(yīng)的值。一旦所有請求完成,將會處理所有請求的結(jié)果。

在上面的示例中,dispatch_semaphore_wait(self.semaphore, DISPATCH_TIME_FOREVER):放在主線程,這個會阻塞主線程,其他操作執(zhí)行不了。只有當(dāng)執(zhí)行完網(wǎng)絡(luò)請求才能做其他事情


信號量

dispatch_semaphore_signal是GCD信號量函數(shù)之一,它的作用是增加信號量的計數(shù)器,從而解除由dispatch_semaphore_wait函數(shù)所阻塞的線程。

dispatch_semaphore_signal的參數(shù)是一個dispatch_semaphore_t對象,它是由dispatch_semaphore_create函數(shù)創(chuàng)建的。每次調(diào)用dispatch_semaphore_signal函數(shù),都會將信號量計數(shù)器加1。如果有線程在等待信號量,那么其中的一個線程會被解除阻塞,繼續(xù)執(zhí)行后續(xù)的代碼

dispatch_semaphore_t semaphore = dispatch_semaphore_create(0);
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
    // 需要等待信號量
    dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER);
    NSLog(@"Task completed.");
});
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
    // 執(zhí)行任務(wù)
    NSLog(@"Task executing...");
    // 增加信號量計數(shù)器的值,解除阻塞
    dispatch_semaphore_signal(semaphore);
});

在上面的代碼中,第一個線程會等待信號量,直到第二個線程調(diào)用dispatch_semaphore_signal函數(shù)增加信號量計數(shù)器的值。這時,第一個線程就可以繼續(xù)執(zhí)行后續(xù)的代碼,輸出Task completed.的日志信息。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 227,428評論 6 531
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 98,024評論 3 413
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人,你說我怎么就攤上這事?!?“怎么了?”我有些...
    開封第一講書人閱讀 175,285評論 0 373
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經(jīng)常有香客問我,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 62,548評論 1 307
  • 正文 為了忘掉前任,我火速辦了婚禮,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當(dāng)我...
    茶點故事閱讀 71,328評論 6 404
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 54,878評論 1 321
  • 那天,我揣著相機與錄音,去河邊找鬼。 笑死,一個胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 42,971評論 3 439
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 42,098評論 0 286
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 48,616評論 1 331
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 40,554評論 3 354
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 42,725評論 1 369
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 38,243評論 5 355
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 43,971評論 3 345
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 34,361評論 0 25
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 35,613評論 1 280
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個月前我還...
    沈念sama閱讀 51,339評論 3 390
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 47,695評論 2 370

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