收藏
回答

iOS微信容器内H5页面跳转关联APP

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这块数据要怎么解析?


最后一次编辑于  03-19
回答关注问题邀请回答
收藏

2 个回答

  • 骆驼
    骆驼
    03-19

    在方法中使用这个


    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);


        }


    }


    03-19
    有用 1
    回复 1
    • Yadea
      Yadea
      11-05
      感谢!
      11-05
      回复
  • yslin
    yslin
    07-23

    楼主问题解决了吗?

    07-23
    有用
    回复
登录 后发表内容