Commit 6d8353db351d5606de18b0d02ab1bb6d7c12e86b

Authored by zhangxiaowen
1 parent 1c071be1

no message

CNLiveScioLive/Pages/Home/新闻详情/OldController/OldArticleDetailViewController.m
... ... @@ -31,7 +31,9 @@
31 31 if (self = [super init]) {
32 32 _dictionary = [NSDictionary dictionaryWithDictionary:dictionary];
33 33 _imageArray = [[ NSMutableArray alloc] init];
34   - htmlString = [NSString stringWithContentsOfURL:[NSURL URLWithString:dictionary[@"pageUrl"]] encoding:NSUTF8StringEncoding error:nil];
  34 +
  35 + NSString *url = [NSString stringWithFormat:@"%@?from=ios",dictionary[@"pageUrl"]];
  36 + htmlString = [NSString stringWithContentsOfURL:[NSURL URLWithString:url] encoding:NSUTF8StringEncoding error:nil];
35 37 //替换掉html页面中的展示js
36 38 NSString *replace=[htmlString stringByReplacingOccurrencesOfString:@"previewImage.start(obj);" withString:@""];
37 39 htmlString=replace;
... ...