|
@@ -39,14 +39,6 @@ static id<ZhiyingCommNativeProtocol> _delegate; |
|
|
setting = [_delegate getSetting]; |
|
|
setting = [_delegate getSetting]; |
|
|
} |
|
|
} |
|
|
result(setting); |
|
|
result(setting); |
|
|
} else if ([@"openWechatPay" isEqualToString:call.method]) { |
|
|
|
|
|
if ([_delegate respondsToSelector:@selector(openWechatPay:status:)]) { |
|
|
|
|
|
[_delegate openWechatPay: call.arguments status: ^(ZhiyingCommNativeResult *res) { |
|
|
|
|
|
result([res toDict]); |
|
|
|
|
|
}]; |
|
|
|
|
|
} else { |
|
|
|
|
|
result([NativeCommandNotImp toDict]); |
|
|
|
|
|
} |
|
|
|
|
|
} else if ([@"invokeMethod" isEqualToString:call.method]) { |
|
|
} else if ([@"invokeMethod" isEqualToString:call.method]) { |
|
|
NSDictionary *dict = call.arguments; |
|
|
NSDictionary *dict = call.arguments; |
|
|
NSString *method = [dict valueForKey:@"method"]; |
|
|
NSString *method = [dict valueForKey:@"method"]; |
|
|