iOS微信容器内H5页面跳转关联APP时,- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options 这个函数回调的url信息:
wxc1b1d53556f52bb0://platformId=wechat?_wechat_sdk_erased_paste_board_data=1&_wechat_sdk_biz_data=YnBsaXN0MDDcAQIDBAUGBwgJCgsMDQ4PDg4QERITFBUWXXJldHVybkZyb21BcHBab2JqZWN0VHlwZVZvcGVuSURfEBJtdXNpY1ZpZGVvRHVyYXRpb25fEBNtdXNpY1ZpZGVvSXNzdWVEYXRhWGxhbmd1YWdlXXdlY2hhdFZlcnNpb25WcmVzdWx0Wm1lc3NhZ2VFeHRcaXNBdXRvUmVzZW5kV2NvdW50cnlXY29tbWFuZFEwUTBfEBxvVW9HdDBkYXdVUXhSbTFrQlBCc0U1bTBvRE5ZVXpoX0NOEhgALyxRMV8QY3siZXZlbnQiOiJnb1BhZ2UiLCJ1cmwiOiJodHRwczovL3NwdW5pb24ueWlodS5jb20vbWVldGluZy9tZWV0aW5nSW5mbz9pbnZpdGVDb2RlPUE0MDRBRDkyNzk0RkMzMDkifQhQVDIwNDAACAAhAC8AOgBBAFYAbAB1AIMAigCVAKIAqgCyALQAtgDVANsA4ADiAUgBSQFKAAAAAAAAAgEAAAAAAAAAFwAAAAAAAAAAAAAAAAAAAU8%3D&_wechat_sdk_biz_data_len=552
中的,_wechat_sdk_biz_data这块数据要怎么解析?
楼主问题解决了吗?
在方法中使用这个
if( [url.host isEqualToString:@"platformId=wechat"] ) {
return [WXApi handleOpenURL:url delegate:[WXApiManager sharedManager]];}
然后再delegate种解析:
-(void) onReq:(BaseReq *)req
{
//获取开放标签传递的extinfo数据逻辑
if ([req isKindOfClass:[LaunchFromWXReq class]]){
LaunchFromWXReq *wxReq = (LaunchFromWXReq*)req;
DEBUG_Log(@"dict:%@",wxReq.message.messageExt);
}
}