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

fix #212

上级 fc1ffbb5
......@@ -80,7 +80,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.0.6+2"
version: "2.0.7"
image:
dependency: transitive
description:
......
......@@ -103,15 +103,24 @@ FlutterMethodChannel *fluwxMethodChannel = nil;
}
WXSubscribeMsgResp *subscribeMsgResp = (WXSubscribeMsgResp *) resp;
NSDictionary *subMsgResult = @{
@"openid": subscribeMsgResp.openId,
@"templateId": subscribeMsgResp.templateId,
@"action": subscribeMsgResp.action,
@"reserved": subscribeMsgResp.reserved,
@"scene": @(subscribeMsgResp.scene),
};
[fluwxMethodChannel invokeMethod:@"onSubscribeMsgResp" arguments:subMsgResult];
NSMutableDictionary *result = [NSMutableDictionary dictionary];
if(subscribeMsgResp.openId != nil){
result[@"openid"] = miniProgramResp.extMsg;
}
if(subscribeMsgResp.openId != nil){
result[@"templateId"] = subscribeMsgResp.templateId;
}
if(subscribeMsgResp.openId != nil){
result[@"action"] = subscribeMsgResp.action
}
if(subscribeMsgResp.openId != nil){
result[@"reserved"] = subscribeMsgResp.reserved;
}
if(subscribeMsgResp.openId != nil){
result[@"scene"] = @(subscribeMsgResp.scene);
}
[fluwxMethodChannel invokeMethod:@"onSubscribeMsgResp" arguments:result];
} else if ([resp isKindOfClass:[WXLaunchMiniProgramResp class]]) {
if ([_delegate respondsToSelector:@selector(managerDidRecvLaunchMiniProgram:)]) {
[_delegate managerDidRecvLaunchMiniProgram:(WXLaunchMiniProgramResp *) resp];
......@@ -204,4 +213,4 @@ FlutterMethodChannel *fluwxMethodChannel = nil;
}
}
}
@end
\ No newline at end of file
@end
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论