Browse Source

优化开播判断

dev-2.0
王子贤 1 month ago
parent
commit
fea8c7aa6f
2 changed files with 3 additions and 1 deletions
  1. 2
      lib/controller/discover/room_controller.dart
  2. 2
      lib/pages/mine/edit_info_page.dart

2
lib/controller/discover/room_controller.dart

@ -1292,7 +1292,7 @@ class RoomController extends GetxController with WidgetsBindingObserver {
await Get.to(() => EditInfoPage()); await Get.to(() => EditInfoPage());
return; return;
} }
if (GlobalData().userData!.auditProfilePhoto != null) {
if (GlobalData().userData!.hasUploadProfilePhoto != true) {
showGeneralDialog( showGeneralDialog(
context: Get.context!, context: Get.context!,
pageBuilder: (BuildContext buildContext, Animation<double> animation, pageBuilder: (BuildContext buildContext, Animation<double> animation,

2
lib/pages/mine/edit_info_page.dart

@ -321,6 +321,7 @@ class _EditInfoPageState extends State<EditInfoPage> {
File(controller.avatarLocalPath.value), File(controller.avatarLocalPath.value),
width: 85.w, width: 85.w,
height: 85.w, height: 85.w,
fit: BoxFit.cover,
) : (controller.userData.value?.profilePhoto?.isNotEmpty ?? false) ? CachedNetworkImage( ) : (controller.userData.value?.profilePhoto?.isNotEmpty ?? false) ? CachedNetworkImage(
imageUrl: "${controller.userData.value?.profilePhoto ?? ""}?x-oss-process=image/format,webp/resize,w_170", imageUrl: "${controller.userData.value?.profilePhoto ?? ""}?x-oss-process=image/format,webp/resize,w_170",
width: 85.w, width: 85.w,
@ -330,6 +331,7 @@ class _EditInfoPageState extends State<EditInfoPage> {
Assets.imagesUserAvatar, Assets.imagesUserAvatar,
width: 85.w, width: 85.w,
height: 85.w, height: 85.w,
fit: BoxFit.cover,
), ),
), ),
), ),

Loading…
Cancel
Save