diff --git a/lib/controller/discover/room_controller.dart b/lib/controller/discover/room_controller.dart index af9d803..9b67d4d 100644 --- a/lib/controller/discover/room_controller.dart +++ b/lib/controller/discover/room_controller.dart @@ -1292,7 +1292,7 @@ class RoomController extends GetxController with WidgetsBindingObserver { await Get.to(() => EditInfoPage()); return; } - if (GlobalData().userData!.auditProfilePhoto != null) { + if (GlobalData().userData!.hasUploadProfilePhoto != true) { showGeneralDialog( context: Get.context!, pageBuilder: (BuildContext buildContext, Animation animation, diff --git a/lib/pages/mine/edit_info_page.dart b/lib/pages/mine/edit_info_page.dart index 5f1de31..f3b0ebe 100644 --- a/lib/pages/mine/edit_info_page.dart +++ b/lib/pages/mine/edit_info_page.dart @@ -321,6 +321,7 @@ class _EditInfoPageState extends State { File(controller.avatarLocalPath.value), width: 85.w, height: 85.w, + fit: BoxFit.cover, ) : (controller.userData.value?.profilePhoto?.isNotEmpty ?? false) ? CachedNetworkImage( imageUrl: "${controller.userData.value?.profilePhoto ?? ""}?x-oss-process=image/format,webp/resize,w_170", width: 85.w, @@ -330,6 +331,7 @@ class _EditInfoPageState extends State { Assets.imagesUserAvatar, width: 85.w, height: 85.w, + fit: BoxFit.cover, ), ), ),