Commit bedb8fb157dae1b177dd490d3c6edb3da14efe3d
1 parent
55dd78e6
no message
Showing
1 changed file
with
4 additions
and
1 deletions
CNLiveScioLive/Pages/Live/Controller/GraphicLiveViewController.m
| @@ -197,10 +197,13 @@ | @@ -197,10 +197,13 @@ | ||
| 197 | if ([text isEqualToString:@"<null>"]) { | 197 | if ([text isEqualToString:@"<null>"]) { |
| 198 | text = _dictionary[@"title"]; | 198 | text = _dictionary[@"title"]; |
| 199 | } | 199 | } |
| 200 | + if ([shareUrl isEqualToString:@"<null>"]||[shareUrl isEqualToString:@"(null)"]) { | ||
| 201 | + shareUrl = @"http://app.scio.gov.cn/gxbShare.html"; | ||
| 202 | + } | ||
| 200 | NSMutableDictionary *shareParams = [NSMutableDictionary dictionary]; | 203 | NSMutableDictionary *shareParams = [NSMutableDictionary dictionary]; |
| 201 | [shareParams SSDKSetupShareParamsByText:text | 204 | [shareParams SSDKSetupShareParamsByText:text |
| 202 | images:@[[UIImage imageNamed:@"cnlive_zhouxin_icon"]] | 205 | images:@[[UIImage imageNamed:@"cnlive_zhouxin_icon"]] |
| 203 | - url:[NSURL URLWithString:shareUrl?shareUrl:@"http://app.scio.gov.cn/gxbShare.html"] | 206 | + url:[NSURL URLWithString:shareUrl] |
| 204 | title:_dictionary[@"title"] | 207 | title:_dictionary[@"title"] |
| 205 | type:SSDKContentTypeAuto]; | 208 | type:SSDKContentTypeAuto]; |
| 206 | //2、分享(可以弹出我们的分享菜单和编辑界面) | 209 | //2、分享(可以弹出我们的分享菜单和编辑界面) |