GCD网络请求:无序(异步+并发)有序(异步+串行)

GCD:异步+并发(信号量)

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);

    //第一个网络请求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group1--------%@",[NSThread currentThread]);
        [self test1];
    });
    
    //第二个网络请求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group2--------%@",[NSThread currentThread]);
        [self test2];
    });
    
    //第三个网络请求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group3--------%@",[NSThread currentThread]);
        [self test3];
    });
    
    //第四个网络请求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group4--------%@",[NSThread currentThread]);
        [self test4];
    });
    
    //第五个网络请求
    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(@"第一步网络请求完成");
        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(@"第二步网络请求完成");
        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(@"第三步网络请求完成");
        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(@"第四步网络请求完成");
        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(@"第五步网络请求完成");
        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] 第一步网络请求完成
2023-04-28 11:30:52.399705+0800 text_04[3758:109456] 第五步网络请求完成
2023-04-28 11:30:52.428851+0800 text_04[3758:109456] 第四步网络请求完成
2023-04-28 11:30:52.430836+0800 text_04[3758:109470] 第二步网络请求完成
2023-04-28 11:30:53.123856+0800 text_04[3758:109451] 第三步网络请求完成
2023-04-28 11:30:53.124068+0800 text_04[3758:109415] --------updateUi--------<_NSMainThread: 0x600000218440>{number = 1, name = main}

在这个示例中,我们使用dispatch_group_async()函数将每个请求添加到dispatch_group_t中。对于每个请求,我们在一个dispatch_queue_t中执行它,并使用dispatch_semaphore_t在请求完成时释放信号量。我们在每个请求的末尾使用dispatch_semaphore_wait()函数等待信号量,以确保在处理完每个请求之前不会离开dispatch_group_t。最后,我们调用dispatch_group_notify()函数来指定所有请求完成后要执行的代码块。

在这个示例中,dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER):放在子线程,不会阻塞主线程,可以执行其他操作。


GCD:异步+并发(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();

    //第一个网络请求
    dispatch_group_enter(self.group);
    dispatch_group_async(self.group, queue, ^{
        NSLog(@"--------group1--------%@",[NSThread currentThread]);
        [self test1];
    });

    //第二个网络请求
    dispatch_group_enter(self.group);
    dispatch_group_async(self.group, queue, ^{
        NSLog(@"--------group2--------%@",[NSThread currentThread]);
        [self test2];
    });

    //第三个网络请求
    dispatch_group_enter(self.group);
    dispatch_group_async(self.group, queue, ^{
        NSLog(@"--------group3--------%@",[NSThread currentThread]);
        [self test3];
    });

    //第四个网络请求
    dispatch_group_enter(self.group);
    dispatch_group_async(self.group, queue, ^{
        NSLog(@"--------group4--------%@",[NSThread currentThread]);
        [self test4];
    });

    //第五个网络请求
    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(@"第一步网络请求完成");
        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(@"第二步网络请求完成");
        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(@"第三步网络请求完成");
        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(@"第四步网络请求完成");
        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(@"第五步网络请求完成");
        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] 第一步网络请求完成
2023-04-28 11:28:50.704591+0800 text_04[3663:105190] 第四步网络请求完成
2023-04-28 11:28:50.709022+0800 text_04[3663:105190] 第二步网络请求完成
2023-04-28 11:28:50.752817+0800 text_04[3663:105186] 第五步网络请求完成
2023-04-28 11:28:51.462473+0800 text_04[3663:105187] 第三步网络请求完成
2023-04-28 11:28:51.462692+0800 text_04[3663:105006] --------updateUi--------<_NSMainThread: 0x60000227c440>{number = 1, name = main}

在上面的代码中,我们首先创建了一个dispatch_group_t类型的组,并将它添加到全局队列中。然后,我们使用dispatch_group_enter函数进入组,并分别发起了三个异步网络请求,并在每个请求完成后打印出完成信息,并调用dispatch_group_leave函数以便离开组。最后,我们使用dispatch_group_notify函数在所有请求完成后打印出“所有异步网络请求已完成”的信息。


GCD:异步+串行(信号量,开子线程按顺序执行)

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);

    //第一个网络请求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group1--------%@",[NSThread currentThread]);
        [self test1];
    });
    dispatch_semaphore_wait(self.semaphore, DISPATCH_TIME_FOREVER);

    //第二个网络请求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group2--------%@",[NSThread currentThread]);
        [self test2];
    });
    dispatch_semaphore_wait(self.semaphore, DISPATCH_TIME_FOREVER);

    //第三个网络请求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group3--------%@",[NSThread currentThread]);
        [self test3];
    });
    dispatch_semaphore_wait(self.semaphore, DISPATCH_TIME_FOREVER);

    //第四个网络请求
    dispatch_group_async(dispatchGroup, dispatchQueue, ^{
        NSLog(@"--------group4--------%@",[NSThread currentThread]);
        [self test4];
    });
    dispatch_semaphore_wait(self.semaphore, DISPATCH_TIME_FOREVER);

    //第五个网络请求
    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(@"第一步网络请求完成");
        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(@"第二步网络请求完成");
        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(@"第三步网络请求完成");
        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(@"第四步网络请求完成");
        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(@"第五步网络请求完成");
        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] 第一步网络请求完成
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] 第二步网络请求完成
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] 第三步网络请求完成
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] 第四步网络请求完成
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] 第五步网络请求完成
2023-04-28 15:20:03.685468+0800 text_04[2325:54236] --------updateUi--------<_NSMainThread: 0x600000d94440>{number = 1, name = main}

在上面的示例中,每个网络请求都是异步执行的,并按顺序执行。在每个网络请求执行完成后,都通过dispatch_semaphore_signal方法使dispatch_semaphore_t对象的计数器加1。在每个网络请求执行之前,都需要通过dispatch_semaphore_wait方法等待dispatch_semaphore_t对象的计数器达到相应的值。一旦所有请求完成,将会处理所有请求的结果。

在上面的示例中,dispatch_semaphore_wait(self.semaphore, DISPATCH_TIME_FOREVER):放在主线程,这个会阻塞主线程,其他操作执行不了。只有当执行完网络请求才能做其他事情


信号量

dispatch_semaphore_signal是GCD信号量函数之一,它的作用是增加信号量的计数器,从而解除由dispatch_semaphore_wait函数所阻塞的线程。

dispatch_semaphore_signal的参数是一个dispatch_semaphore_t对象,它是由dispatch_semaphore_create函数创建的。每次调用dispatch_semaphore_signal函数,都会将信号量计数器加1。如果有线程在等待信号量,那么其中的一个线程会被解除阻塞,继续执行后续的代码

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), ^{
    // 执行任务
    NSLog(@"Task executing...");
    // 增加信号量计数器的值,解除阻塞
    dispatch_semaphore_signal(semaphore);
});

在上面的代码中,第一个线程会等待信号量,直到第二个线程调用dispatch_semaphore_signal函数增加信号量计数器的值。这时,第一个线程就可以继续执行后续的代码,输出Task completed.的日志信息。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 217,185评论 6 503
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,652评论 3 393
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 163,524评论 0 353
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,339评论 1 293
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,387评论 6 391
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,287评论 1 301
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,130评论 3 418
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,985评论 0 275
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,420评论 1 313
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,617评论 3 334
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,779评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,477评论 5 345
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,088评论 3 328
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,716评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,857评论 1 269
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,876评论 2 370
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,700评论 2 354

推荐阅读更多精彩内容