Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
appframe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 53a9490d
authored
2026-01-20 10:11:57 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修正绑定appleUserId逻辑
1 parent
29a05826
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
lib/bloc/login_main_cubit.dart
lib/bloc/login_main_cubit.dart
View file @
53a9490
...
...
@@ -142,8 +142,19 @@ class LoginMainCubit extends Cubit<LoginMainState> {
}
Future
<
void
>
wechatAuthForApple
()
async
{
emit
(
state
.
copyWith
(
showNeedWechatForApple:
false
));
wechatAuth
();
emit
(
state
.
copyWith
(
showNeedWechatForApple:
false
,
loginType:
2
));
var
authResult
=
await
_fluwx
.
authBy
(
which:
NormalAuth
(
scope:
'snsapi_userinfo'
,
state:
'wechat_sdk_test'
),
);
if
(!
authResult
)
{
Fluttertoast
.
showToast
(
msg:
'微信授权处理失败'
,
backgroundColor:
Colors
.
red
);
return
;
}
// 控制显示加载框
emit
(
state
.
copyWith
(
loading:
true
));
}
Future
<
void
>
wechatAuth
()
async
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment