Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-02 13:59:52 +08:00
parent 89df091542
commit d112843a8a
5 changed files with 5 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ class BangumiController extends CommonController {
void onInit() {
super.onInit();
mid = Accounts.main.mid;
isLogin.value = mid != null;
isLogin.value = mid != 0;
queryData();
queryBangumiFollow();

View File

@@ -16,7 +16,7 @@ class FavController extends CommonController {
@override
Future queryData([bool isRefresh = true]) {
if (mid == null) {
if (mid == 0) {
loadingState.value = LoadingState.error('账号未登录');
return Future.value();
}

View File

@@ -46,7 +46,7 @@ class MediaController extends CommonController {
void onInit() {
super.onInit();
mid = Accounts.main.mid;
if (mid != null) {
if (mid != 0) {
queryData();
}
}

View File

@@ -144,7 +144,7 @@ class MemberControllerNew extends CommonController
);
Future blockUser(BuildContext context) async {
if (ownerMid == null) {
if (ownerMid == 0) {
SmartDialog.showToast('账号未登录');
return;
}

View File

@@ -20,7 +20,7 @@ class SubController extends CommonController {
@override
Future queryData([bool isRefresh = true]) {
if (mid == null) {
if (mid == 0) {
loadingState.value = LoadingState.error('账号未登录');
return Future.value();
}