修复了动态分享的问题
This commit is contained in:
@@ -41,6 +41,14 @@ typedef NS_ENUM(NSUInteger, ShareType) {
|
||||
@property (nonatomic,copy) NSString *dynamicId;
|
||||
///话题id
|
||||
@property (nonatomic,copy) NSString *worldId;
|
||||
///封面
|
||||
@property (nonatomic,copy) NSString *imageUrl;
|
||||
///名称
|
||||
@property (nonatomic,copy) NSString *nick;
|
||||
///发布者的uid
|
||||
@property (nonatomic,copy) NSString *publishUid;
|
||||
///内容
|
||||
@property (nonatomic,copy) NSString *content;
|
||||
|
||||
@end
|
||||
|
||||
|
@@ -10,10 +10,18 @@
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ContentShareMonentsModel : NSObject
|
||||
///动态内容
|
||||
@property (nonatomic,copy) NSString *content;
|
||||
///动态id
|
||||
///动态分享
|
||||
@property (nonatomic,copy) NSString *dynamicId;
|
||||
///话题id
|
||||
@property (nonatomic,copy) NSString *worldId;
|
||||
///封面
|
||||
@property (nonatomic,copy) NSString *imageUrl;
|
||||
///名称
|
||||
@property (nonatomic,copy) NSString *nick;
|
||||
///发布者的uid
|
||||
@property (nonatomic,copy) NSString *publishUid;
|
||||
///内容
|
||||
@property (nonatomic,copy) NSString *content;
|
||||
///头像
|
||||
@property (nonatomic,copy) NSString *avatar;
|
||||
///标题
|
||||
|
@@ -265,7 +265,7 @@
|
||||
} else if(attachment.first == CustomMessageType_Message_Handle && attachment.second == Custom_Message_Sub_Message_Handle_Content) {
|
||||
return @"MessageContentMonentsAutoView";
|
||||
}else {
|
||||
return @"MessageContentOpenLiveView";
|
||||
return @"MessageContentUnSupportView";
|
||||
}
|
||||
} else {
|
||||
return @"MessageContentUnSupportView";
|
||||
|
@@ -91,9 +91,10 @@
|
||||
attachment.first = CustomMessageType_Monents;
|
||||
attachment.second = Custom_Message_Sub_Monents_Share;
|
||||
ContentShareMonentsModel * shareInfo = [[ContentShareMonentsModel alloc] init];
|
||||
shareInfo.avatar = self.shareInfo.shareImageUrl;
|
||||
shareInfo.title = self.shareInfo.shareTitle;
|
||||
shareInfo.content = self.shareInfo.shareContent;
|
||||
shareInfo.imageUrl = self.shareInfo.imageUrl;
|
||||
shareInfo.nick = self.shareInfo.nick;
|
||||
shareInfo.content = self.shareInfo.content;
|
||||
shareInfo.dynamicId= self.shareInfo.dynamicId;
|
||||
shareInfo.routerValue = self.shareInfo.dynamicId;
|
||||
shareInfo.routerType = 50;
|
||||
attachment.data = shareInfo.model2dictionary;
|
||||
|
@@ -177,6 +177,9 @@
|
||||
if (self.monentsInfo.nick.length > 6) {
|
||||
title = [title substringToIndex:6];
|
||||
}
|
||||
shareInfo.nick = title;
|
||||
shareInfo.content = self.monentsInfo.content;
|
||||
shareInfo.imageUrl = self.monentsInfo.avatar;
|
||||
shareInfo.shareTitle = [NSString stringWithFormat:@"%@发布了一条动态", title];
|
||||
shareInfo.shareContent = self.monentsInfo.content;
|
||||
shareInfo.shareImageUrl = self.monentsInfo.avatar;
|
||||
|
Reference in New Issue
Block a user