|
|
@@ -28,6 +28,8 @@ class ProfileController extends BaseController {
|
|
|
|
|
|
int get userGender => userInfo?.gender ?? 0;
|
|
|
|
|
|
+ bool get isLogin => accountRepository.isLogin.value;
|
|
|
+
|
|
|
final Rx<KeyboardInfo> _currentCustomKeyboardInfo = KeyboardInfo().obs;
|
|
|
|
|
|
KeyboardInfo get currentCustomKeyboardInfo =>
|
|
|
@@ -110,6 +112,12 @@ class ProfileController extends BaseController {
|
|
|
clickAvatar({required bool isUser, KeyboardInfo? keyboardInfo}) async {
|
|
|
AtmobLog.d(tag, "clickAvatar");
|
|
|
if (!isUser) {
|
|
|
+ if (isLogin == false) {
|
|
|
+ ToastUtil.show('请先登录~');
|
|
|
+ LoginDialog.show();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
var result = await ProfileEditPage.start(keyboardInfo: keyboardInfo);
|
|
|
if (result == true) {
|
|
|
await getCustomKeyboard();
|