Commit 6e9d9084 by tanghuan

修正绑定appleUserId逻辑

1 parent 990951ff
......@@ -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;
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!