提交 9dafe414 authored 作者: JarvanMo's avatar JarvanMo

fix bug

上级 7ebd6c4d
......@@ -16,6 +16,7 @@
package com.jarvan.fluwx.handler
import android.util.Log
import com.tencent.mm.opensdk.diffdev.DiffDevOAuthFactory
import com.tencent.mm.opensdk.diffdev.OAuthErrCode
import com.tencent.mm.opensdk.diffdev.OAuthListener
......
......@@ -16,11 +16,12 @@ class _AuthByQRCodePageState extends State<AuthByQRCodePage> {
void initState() {
super.initState();
fluwx.onAuthByQRCodeFinished.listen((data) => {
fluwx.onAuthByQRCodeFinished.listen((data){
print("----finished");
setState(() {
_status =
"errorCode=>${data.errorCode}\nauthCode=>${data.authCode}";
})
});
});
fluwx.onAuthGotQRCode.listen((image) {
setState(() {
......
......@@ -302,9 +302,9 @@ Future subscribeMsg({
}
_handleOnAuthByQRCodeFinished(MethodCall methodCall) {
int errCode = methodCall.arguments("errCode");
int errCode = methodCall.arguments["errCode"];
_authByQRCodeFinishedController.add(AuthByQRCodeResult(
methodCall.arguments("authCode"),
methodCall.arguments["authCode"],
_authByQRCodeErrorCodes[errCode] ?? AuthByQRCodeErrorCode.UNKNOWN));
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论