提交 40e27f68 authored 作者: JarvanMo's avatar JarvanMo

release extMsg after fetched

上级 f99a92b6
...@@ -109,6 +109,7 @@ class FluwxPlugin : FlutterPlugin, MethodCallHandler, ActivityAware,PluginRegist ...@@ -109,6 +109,7 @@ class FluwxPlugin : FlutterPlugin, MethodCallHandler, ActivityAware,PluginRegist
private fun getExtMsg(result: MethodChannel.Result) { private fun getExtMsg(result: MethodChannel.Result) {
result.success(extMsg) result.success(extMsg)
extMsg = null
} }
private fun pay(call: MethodCall, result: MethodChannel.Result) { private fun pay(call: MethodCall, result: MethodChannel.Result) {
......
...@@ -198,6 +198,7 @@ FlutterMethodChannel *channel = nil; ...@@ -198,6 +198,7 @@ FlutterMethodChannel *channel = nil;
- (void)handelGetExtMsgWithCall:(FlutterMethodCall *)call result:(FlutterResult)result { - (void)handelGetExtMsgWithCall:(FlutterMethodCall *)call result:(FlutterResult)result {
result(self.extMsg); result(self.extMsg);
self.extMsg=nil;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论