Commit 6e9d9084 by tanghuan

修正绑定appleUserId逻辑

1 parent 990951ff
...@@ -91,8 +91,10 @@ class LoginMainCubit extends Cubit<LoginMainState> { ...@@ -91,8 +91,10 @@ class LoginMainCubit extends Cubit<LoginMainState> {
/// 通过 Apple 登录 /// 通过 Apple 登录
/// ///
void appleAuth() async { void appleAuth() async {
emit(state.copyWith(loginType: 2));
if (!state.agreed) { if (!state.agreed) {
emit(state.copyWith(showAgreed: true, loginType: 2)); emit(state.copyWith(showAgreed: true));
return; return;
} }
...@@ -147,8 +149,10 @@ class LoginMainCubit extends Cubit<LoginMainState> { ...@@ -147,8 +149,10 @@ class LoginMainCubit extends Cubit<LoginMainState> {
} }
Future<void> wechatAuth() async { Future<void> wechatAuth() async {
emit(state.copyWith(loginType: 1));
if (!state.agreed) { if (!state.agreed) {
emit(state.copyWith(showAgreed: true, loginType: 1)); emit(state.copyWith(showAgreed: true));
return; return;
} }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!