Commit 0430be6c authored by 曹云霄's avatar 曹云霄

优化分享第三方平台漏洞

parent 27974eb3
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
#pragma mark - 设置评论个数 #pragma mark - 设置评论个数
- (void)setUpCommentNumber - (void)setUpCommentNumber
{ {
self.commentNumberLabel.text = [NSString stringWithFormat:@"已有%ld条评论",self.commentsArray.count]; self.commentNumberLabel.text = [NSString stringWithFormat:@"已有%ld条评论",(unsigned long)self.commentsArray.count];
self.praiseButton.selected = !self.topicDetail.canLike; self.praiseButton.selected = !self.topicDetail.canLike;
} }
...@@ -315,6 +315,7 @@ ...@@ -315,6 +315,7 @@
ShareGoodsViewController *shareController = [[ShareGoodsViewController alloc]init]; ShareGoodsViewController *shareController = [[ShareGoodsViewController alloc]init];
shareController.type = SHARE_INVITATION; shareController.type = SHARE_INVITATION;
shareController.shareID = self.topicDetail.fid; shareController.shareID = self.topicDetail.fid;
shareController.shareImage = [UIImage imageNamed:@"Icon-83.5"];
shareController.preferredContentSize = CGSizeMake(290, 120); shareController.preferredContentSize = CGSizeMake(290, 120);
shareController.modalPresentationStyle = UIModalPresentationPopover; shareController.modalPresentationStyle = UIModalPresentationPopover;
UIPopoverPresentationController *popover = shareController.popoverPresentationController; UIPopoverPresentationController *popover = shareController.popoverPresentationController;
......
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
self.imageBackView.imageArray = _topicEntity.attachments; self.imageBackView.imageArray = _topicEntity.attachments;
} }
self.imageBackView.indexPath = self.indexPath; self.imageBackView.indexPath = self.indexPath;
NSString *headerurl = [Shoppersmanager manager].Shoppers.employee.picture;
[self.headerImageView sd_setImageWithURL:[NSURL URLWithString:headerurl] placeholderImage:ReplaceImage];
} }
} }
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
- (IBAction)ShareWeiChatAntWeiboAction:(UIButton *)sender { - (IBAction)ShareWeiChatAntWeiboAction:(UIButton *)sender {
WS(weakSelf); WS(weakSelf);
[self dismissViewControllerAnimated:YES completion:nil];
switch (self.type) { switch (self.type) {
case SHARE_GOODS: case SHARE_GOODS:
{ {
...@@ -102,11 +101,9 @@ ...@@ -102,11 +101,9 @@
}]; }];
} }
break; break;
default: default:
break; break;
} }
} }
#pragma mark - 调用分享 #pragma mark - 调用分享
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment