提交 f4481b5f authored 作者: JarvanMo's avatar JarvanMo

fix:use defaultManager instead of responseHandler

上级 05733127
......@@ -22,7 +22,7 @@ BOOL handleOpenURLByFluwx = YES;
binaryMessenger:[registrar messenger]];
FluwxPlugin *instance = [[FluwxPlugin alloc] initWithRegistrar:registrar];
[[FluwxResponseHandler responseHandler] setMethodChannel:channel];
[[FluwxResponseHandler defaultManager] setMethodChannel:channel];
[registrar addMethodCallDelegate:instance channel:channel];
......@@ -88,7 +88,7 @@ BOOL handleOpenURLByFluwx = YES;
if(handleOpenURLByFluwx){
NSString * aURLString = [aNotification userInfo][@"url"];
NSURL * aURL = [NSURL URLWithString:aURLString];
return [WXApi handleOpenURL:aURL delegate:[FluwxResponseHandler responseHandler]];
return [WXApi handleOpenURL:aURL delegate:[FluwxResponseHandler defaultManager]];
} else{
return NO;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论