邀请码及通用飘屏

This commit is contained in:
liyuhua
2024-03-20 19:55:26 +08:00
parent d9d9976046
commit 9688b04a25
24 changed files with 511 additions and 23 deletions

View File

@@ -184,6 +184,9 @@
return;
}
NSString*contentKey= [encodedUrl stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet characterSetWithCharactersInString:@"`#%^{}\"[]|\\<> "].invertedSet];
if(item.isShareInvite){
contentKey = [NSString stringWithFormat:@"%@[%@]",item.inviteTitle,encodedUrl];
}
NSString*contentType =@"text";
NSString*urlString = [NSString stringWithFormat:@"line://msg/%@/%@",contentType, contentKey];
@@ -202,11 +205,6 @@
urlString = [urlString stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLFragmentAllowedCharacterSet]];
linkContent.contentURL= [NSURL URLWithString:urlString];
linkContent.quote = content;
FBSDKSharePhoto *p = [[FBSDKSharePhoto alloc]initWithImageURL:nil isUserGenerated:NO];
FBSDKShareDialog *shareDialog = [[FBSDKShareDialog alloc]initWithViewController:[XCCurrentVCStackManager shareManager].getCurrentVC content:linkContent delegate:self];
// web
shareDialog.mode = FBSDKShareDialogModeNative;