//跳转到支付宝

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType

{

    NSString *reqUrl = request.URL.absoluteString;

    DLog(@"reqUrl:%@ \n",reqUrl);

    DLog(@"request:%@ \n",request.URL);

 

    if ([reqUrl hasPrefix:@"alipays://"] || [reqUrl hasPrefix:@"alipay://"]) {

        //拦截url ,截取 参数

        [[UIApplication sharedApplication]openURL:request.URL];

    }

    

    return YES;

}

 

 

相关文章:

  • 2022-01-17
  • 2022-12-23
  • 2021-12-04
  • 2021-12-13
  • 2021-07-10
  • 2022-01-29
  • 2021-05-16
  • 2021-10-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-14
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案