From 072a8dabf6e2be7610193d0c4858731b9d500666 Mon Sep 17 00:00:00 2001 From: Karosli Date: Wed, 13 Jan 2021 00:01:37 +0800 Subject: [PATCH] =?UTF-8?q?demo=E4=B8=8D=E6=8B=A6=E6=88=AA=E6=B7=98?= =?UTF-8?q?=E5=AE=9D=E7=9A=84=E9=87=8D=E5=AE=9A=E5=90=91=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- KKJSBridgeDemo/KKJSBridgeDemo/HtmlURLProtocol.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/KKJSBridgeDemo/KKJSBridgeDemo/HtmlURLProtocol.m b/KKJSBridgeDemo/KKJSBridgeDemo/HtmlURLProtocol.m index de6c4c9..16ea088 100644 --- a/KKJSBridgeDemo/KKJSBridgeDemo/HtmlURLProtocol.m +++ b/KKJSBridgeDemo/KKJSBridgeDemo/HtmlURLProtocol.m @@ -47,6 +47,10 @@ + (BOOL)canInitWithRequest:(NSURLRequest *)request { if ([NSURLProtocol propertyForKey:kKKJSBridgeNSURLProtocolKey inRequest:request]) { return NO; } + + if ([request.URL.host hasPrefix:@"redirect.simba.taobao.com"]) { + return NO; + } NSLog(@"HtmlURLProtocol %@", request.URL.absoluteString); return YES;