Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-fluwx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
clx-fluwx
Commits
aed48978
Unverified
提交
aed48978
authored
9月 23, 2019
作者:
JarvanMo
提交者:
GitHub
9月 23, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add streams via sink
上级
5ce85d01
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
9 行增加
和
9 行删除
+9
-9
fluwx_iml.dart
lib/src/fluwx_iml.dart
+9
-9
没有找到文件。
lib/src/fluwx_iml.dart
浏览文件 @
aed48978
...
@@ -90,28 +90,28 @@ final MethodChannel _channel = const MethodChannel('com.jarvanmo/fluwx')
...
@@ -90,28 +90,28 @@ final MethodChannel _channel = const MethodChannel('com.jarvanmo/fluwx')
Future
<
dynamic
>
_handler
(
MethodCall
methodCall
)
{
Future
<
dynamic
>
_handler
(
MethodCall
methodCall
)
{
if
(
"onShareResponse"
==
methodCall
.
method
)
{
if
(
"onShareResponse"
==
methodCall
.
method
)
{
_responseShareController
_responseShareController
.
sink
.
add
(
WeChatShareResponse
.
fromMap
(
methodCall
.
arguments
));
.
add
(
WeChatShareResponse
.
fromMap
(
methodCall
.
arguments
));
}
else
if
(
"onAuthResponse"
==
methodCall
.
method
)
{
}
else
if
(
"onAuthResponse"
==
methodCall
.
method
)
{
_responseAuthController
_responseAuthController
.
sink
.
add
(
WeChatAuthResponse
.
fromMap
(
methodCall
.
arguments
));
.
add
(
WeChatAuthResponse
.
fromMap
(
methodCall
.
arguments
));
}
else
if
(
"onLaunchMiniProgramResponse"
==
methodCall
.
method
)
{
}
else
if
(
"onLaunchMiniProgramResponse"
==
methodCall
.
method
)
{
_responseLaunchMiniProgramController
_responseLaunchMiniProgramController
.
sink
.
add
(
WeChatLaunchMiniProgramResponse
.
fromMap
(
methodCall
.
arguments
));
.
add
(
WeChatLaunchMiniProgramResponse
.
fromMap
(
methodCall
.
arguments
));
}
else
if
(
"onPayResponse"
==
methodCall
.
method
)
{
}
else
if
(
"onPayResponse"
==
methodCall
.
method
)
{
_responsePaymentController
_responsePaymentController
.
sink
.
add
(
WeChatPaymentResponse
.
fromMap
(
methodCall
.
arguments
));
.
add
(
WeChatPaymentResponse
.
fromMap
(
methodCall
.
arguments
));
}
else
if
(
"onSubscribeMsgResp"
==
methodCall
.
method
)
{
}
else
if
(
"onSubscribeMsgResp"
==
methodCall
.
method
)
{
_responseFromSubscribeMsg
_responseFromSubscribeMsg
.
sink
.
add
(
WeChatSubscribeMsgResp
.
fromMap
(
methodCall
.
arguments
));
.
add
(
WeChatSubscribeMsgResp
.
fromMap
(
methodCall
.
arguments
));
}
else
if
(
"onAuthByQRCodeFinished"
==
methodCall
.
method
)
{
}
else
if
(
"onAuthByQRCodeFinished"
==
methodCall
.
method
)
{
_handleOnAuthByQRCodeFinished
(
methodCall
);
_handleOnAuthByQRCodeFinished
(
methodCall
);
}
else
if
(
"onAuthGotQRCode"
==
methodCall
.
method
)
{
}
else
if
(
"onAuthGotQRCode"
==
methodCall
.
method
)
{
_onAuthGotQRCodeController
.
add
(
methodCall
.
arguments
);
_onAuthGotQRCodeController
.
sink
.
add
(
methodCall
.
arguments
);
}
else
if
(
"onQRCodeScanned"
==
methodCall
.
method
)
{
}
else
if
(
"onQRCodeScanned"
==
methodCall
.
method
)
{
_onQRCodeScannedController
.
add
(
null
);
_onQRCodeScannedController
.
sink
.
add
(
null
);
}
else
if
(
"onAutoDeductResponse"
==
methodCall
.
method
)
{
}
else
if
(
"onAutoDeductResponse"
==
methodCall
.
method
)
{
_responseAutoDeductController
_responseAutoDeductController
.
sink
.
add
(
WeChatAutoDeductResponse
.
fromMap
(
methodCall
.
arguments
));
.
add
(
WeChatAutoDeductResponse
.
fromMap
(
methodCall
.
arguments
));
}
}
...
@@ -348,7 +348,7 @@ Future<bool> openWeChatApp() async {
...
@@ -348,7 +348,7 @@ Future<bool> openWeChatApp() async {
_handleOnAuthByQRCodeFinished
(
MethodCall
methodCall
)
{
_handleOnAuthByQRCodeFinished
(
MethodCall
methodCall
)
{
int
errCode
=
methodCall
.
arguments
[
"errCode"
];
int
errCode
=
methodCall
.
arguments
[
"errCode"
];
_authByQRCodeFinishedController
.
add
(
AuthByQRCodeResult
(
_authByQRCodeFinishedController
.
sink
.
add
(
AuthByQRCodeResult
(
methodCall
.
arguments
[
"authCode"
],
methodCall
.
arguments
[
"authCode"
],
_authByQRCodeErrorCodes
[
errCode
]
??
AuthByQRCodeErrorCode
.
UNKNOWN
));
_authByQRCodeErrorCodes
[
errCode
]
??
AuthByQRCodeErrorCode
.
UNKNOWN
));
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论