Skip to content

Commit

Permalink
Merge pull request #1295 from coderyi/dev
Browse files Browse the repository at this point in the history
[ios] bugfix - url : 打开url的时候需要先判断一下有没有参数,以决定拼接random参数是用?还是&连接
  • Loading branch information
cxfeng1 authored Sep 25, 2016
2 parents 9b64675 + d7d57d0 commit c49ba2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/playground/WeexDemo/WXDemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ - (void)render
return;
}
NSURL *URL = [self testURL: [self.url absoluteString]];
NSString *randomURL = [NSString stringWithFormat:@"%@?random=%d",URL.absoluteString,arc4random()];
NSString *randomURL = [NSString stringWithFormat:@"%@%@random=%d",URL.absoluteString,URL.query?@"&":@"?",arc4random()];
[_instance renderWithURL:[NSURL URLWithString:randomURL] options:@{@"bundleUrl":URL.absoluteString} data:nil];
}

Expand Down

0 comments on commit c49ba2a

Please sign in to comment.