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 6e9d9084
authored
2026-01-19 18:53:58 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修正绑定appleUserId逻辑
1 parent
990951ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
lib/bloc/login_main_cubit.dart
lib/bloc/login_main_cubit.dart
View file @
6e9d908
...
...
@@ -91,8 +91,10 @@ class LoginMainCubit extends Cubit<LoginMainState> {
/// 通过 Apple 登录
///
void
appleAuth
()
async
{
emit
(
state
.
copyWith
(
loginType:
2
));
if
(!
state
.
agreed
)
{
emit
(
state
.
copyWith
(
showAgreed:
true
,
loginType:
2
));
emit
(
state
.
copyWith
(
showAgreed:
true
));
return
;
}
...
...
@@ -147,8 +149,10 @@ class LoginMainCubit extends Cubit<LoginMainState> {
}
Future
<
void
>
wechatAuth
()
async
{
emit
(
state
.
copyWith
(
loginType:
1
));
if
(!
state
.
agreed
)
{
emit
(
state
.
copyWith
(
showAgreed:
true
,
loginType:
1
));
emit
(
state
.
copyWith
(
showAgreed:
true
));
return
;
}
...
...
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