@@ -290,20 +290,20 @@ - (void)p_doShareToSnsName:(NSString *)snsName{
290290 if (response.responseCode == UMSResponseCodeSuccess) {
291291 [self showStatusBarSuccessStr: @" 分享成功" ];
292292 }else {
293- [self showStatusBarError: response.error ];
293+ [self showStatusBarErrorStr: @" 分享失败 " ];
294294 }
295295 }];
296296 }else if ([snsName isEqualToString: @" evernote" ]){
297297 ENNote *noteToSave = [ENNote new ];
298298 noteToSave.title = [self p_shareTitle ];
299299 NSString *htmlStr;
300- if ([_objToShare valueForKey: @" htmlMedia" ]) {
300+ if ([_objToShare respondsToSelector: NSSelectorFromString ( @" htmlMedia" ) ]) {
301301 HtmlMedia *htmlMedia = [_objToShare valueForKey: @" htmlMedia" ];
302302 htmlStr = htmlMedia.contentOrigional ;
303303 }else {
304304 htmlStr = [self p_shareText ];
305305 }
306- htmlStr = [htmlStr stringByAppendingFormat: @" <p><a href=\" %@ \" >冒泡原始链接</a></p>" , [self p_shareLinkStr ]];
306+ htmlStr = [htmlStr stringByAppendingFormat: @" <p>\n <a href=\" %@ \" >冒泡原始链接</a></p>" , [self p_shareLinkStr ]];
307307 noteToSave.content = [ENNoteContent noteContentWithSanitizedHTML: htmlStr];
308308
309309 if (![[ENSession sharedSession ] isAuthenticated ]) {
@@ -360,8 +360,7 @@ - (NSString *)p_shareTitle{
360360- (NSString *)p_shareText {
361361 NSString *text;
362362 if ([_objToShare isKindOfClass: [Tweet class ]]) {
363- NSString *contentOrigional = [(Tweet *)_objToShare htmlMedia ].contentOrigional ;
364- text = [contentOrigional stringByRemoveHtmlTag ];
363+ text = [(Tweet *)_objToShare content ];
365364 }else {
366365 text = @" Coding 让开发更简单!" ;
367366 }
@@ -380,7 +379,6 @@ - (void)willTranspondMessage:(PrivateMessage *)message{
380379- (void )doTranspondMessage : (PrivateMessage *)curMessage {
381380 [[Coding_NetAPIManager sharedManager ] request_SendPrivateMessage: curMessage andBlock: ^(id data, NSError *error) {
382381 if (data) {
383- DebugLog (@" 转发成功:%@ , %@ " , curMessage.friend .name , curMessage.htmlMedia .contentOrigional );
384382 [self showHudTipStr: @" 已发送" ];
385383 }
386384 }];
0 commit comments