Skip to content

Commit

Permalink
修正瀏覽 ex hentai 時, sd webimage 沒有使用 cookie 導致圖片出不來的問題
Browse files Browse the repository at this point in the history
  • Loading branch information
DaidoujiChen committed Nov 26, 2016
1 parent 2820e8f commit 8c594b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
cell.statusLabel.text = [NSString stringWithFormat:@"下載中 : %@ / %@", recvCountString, totalCountString];
}
NSDictionary *currentHentaiInfo = currentArray[indexPath.row][@"hentaiInfo"];
[cell.thumbnailImageView sd_setImageWithURL:currentHentaiInfo[@"thumb"] placeholderImage:nil options:SDWebImageRefreshCached];
[cell.thumbnailImageView sd_setImageWithURL:currentHentaiInfo[@"thumb"] placeholderImage:nil options:SDWebImageRefreshCached | SDWebImageHandleCookies];
cell.titleLabel.text = currentHentaiInfo[@"title"];
return cell;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N

// 設定 ipad / iphone 共通資訊
NSURL *imageURL = [NSURL URLWithString:hentaiInfo[@"thumb"]];
[cell.thumbImageView sd_setImageWithURL:imageURL completed: ^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
[cell.thumbImageView sd_setImageWithURL:imageURL placeholderImage:nil options:SDWebImageHandleCookies completed: ^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
if (!error) {
[cell.thumbImageView hentai_pathShadow];
[cell.backgroundImageView hentai_blurWithImage:image];
Expand Down
2 changes: 1 addition & 1 deletion e-Hentai/MainViewController/MainViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N

//設定 ipad / iphone 共通資訊
NSURL *imageURL = [NSURL URLWithString:hentaiInfo[@"thumb"]];
[cell.thumbImageView sd_setImageWithURL:imageURL completed: ^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
[cell.thumbImageView sd_setImageWithURL:imageURL placeholderImage:nil options:SDWebImageHandleCookies completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
if (!error) {
[cell.thumbImageView hentai_pathShadow];
[cell.backgroundImageView hentai_blurWithImage:image];
Expand Down

0 comments on commit 8c594b1

Please sign in to comment.