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

fix result of launch mini program

上级 c6023d54
package com.jarvan.fluwx.handler
import android.util.Log
import com.jarvan.fluwx.constant.WechatPluginKeys
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import com.tencent.mm.opensdk.modelbiz.WXLaunchMiniProgram
......@@ -19,6 +20,10 @@ internal class FluwxLaunchMiniProgramHandler {
2-> WXLaunchMiniProgram.Req.MINIPROGRAM_TYPE_PREVIEW
else-> WXLaunchMiniProgram.Req.MINIPTOGRAM_TYPE_RELEASE
}// 可选打开 开发版,体验版和正式版
result.success(WXAPiHandler.wxApi?.sendReq(req))
val done = WXAPiHandler.wxApi?.sendReq(req)
result.success(mapOf(
WechatPluginKeys.PLATFORM to WechatPluginKeys.ANDROID,
WechatPluginKeys.RESULT to done
))
}
}
\ No newline at end of file
......@@ -50,7 +50,8 @@ class _MyAppState extends State<MyApp> {
title: const Text('Plugin example app'),
),
body: ShareSelectorPage()),
);
)
;
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论