提交 279ed1ea authored 作者: JarvanMo's avatar JarvanMo

return value after sending launchminiprogram request

上级 ca38a506
......@@ -89,7 +89,7 @@ FluwxLaunchMiniProgramHandler *_fluwxLaunchMiniProgramHandler;
[_fluwxLaunchMiniProgramHandler handleLaunchMiniProgram:call result:result];
return;
}
if ([call.method hasPrefix:@"share"]) {
[_fluwxShareHandler handleShare:call result:result];
return;
......
#import "FluwxLaunchMiniProgramHandler.h"
#import "WXApiRequestHandler.h"
#import "FluwxKeys.h"
@implementation FluwxLaunchMiniProgramHandler
......@@ -25,8 +26,9 @@
miniProgramType = WXMiniProgramTypePreview;
}
[WXApiRequestHandler launchMiniProgramWithUserName:userName
BOOL done = [WXApiRequestHandler launchMiniProgramWithUserName:userName
path:path
type:miniProgramType];
result(@{fluwxKeyPlatform: fluwxKeyIOS, fluwxKeyResult: @(done)});
}
@end
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论