diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index ea138b8..fb9bfa7 100755 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 54; + objectVersion = 60; objects = { /* Begin PBXBuildFile section */ diff --git a/lib/app/common/app_run_data.dart b/lib/app/common/app_run_data.dart index 35817d7..bce9282 100755 --- a/lib/app/common/app_run_data.dart +++ b/lib/app/common/app_run_data.dart @@ -97,7 +97,7 @@ class KRAppRunData { /// 判断是否是设备登录(游客模式) bool isDeviceLogin() { // 设备登录的账号格式为 "device_设备ID" - return kr_account.value != null && kr_account.value!.startsWith('9000'); + return kr_authType.value != null && kr_authType.value == 'device'; } /// 🔧 修复2.1:验证Token格式是否有效 diff --git a/lib/app/modules/hi_anti_lost/controllers/hi_anti_lost_controller.dart b/lib/app/modules/hi_anti_lost/controllers/hi_anti_lost_controller.dart index 9e213d6..9314b3e 100644 --- a/lib/app/modules/hi_anti_lost/controllers/hi_anti_lost_controller.dart +++ b/lib/app/modules/hi_anti_lost/controllers/hi_anti_lost_controller.dart @@ -9,6 +9,7 @@ import 'package:get/get.dart'; import 'package:gal/gal.dart'; import 'package:kaer_with_panels/app/utils/kr_common_util.dart'; import 'package:kaer_with_panels/app/widgets/dialogs/hi_dialog.dart'; +import 'package:permission_handler/permission_handler.dart'; import 'package:url_launcher/url_launcher.dart'; class HIAntiLostController extends GetxController { @@ -51,7 +52,13 @@ class HIAntiLostController extends GetxController { debugPrint("Save image error: $e"); if (e is GalException) { if (e.type == GalExceptionType.accessDenied) { - await Gal.requestAccess(); + HIDialog.show( + title: "提示", + message: "请到-设置-应用-Hi快vpn-相册权限-允许保存相片打开保存图片权限", + confirmText: "去设置", + cancelText: "取消", + onConfirm: () => openAppSettings(), + ); } else { KRCommonUtil.kr_showToast("保存失败: ${e.type.name}"); } diff --git a/lib/app/modules/hi_user_info/views/hi_user_info_view.dart b/lib/app/modules/hi_user_info/views/hi_user_info_view.dart index 2ab67a2..594e159 100755 --- a/lib/app/modules/hi_user_info/views/hi_user_info_view.dart +++ b/lib/app/modules/hi_user_info/views/hi_user_info_view.dart @@ -235,11 +235,7 @@ class HIUserInfoView extends GetView { ), // 👇 核心改动 3: 将固定在底部的按钮放在 Expanded 外部 Obx(() { - if ((KRAppRunData.getInstance().kr_account.value != null && - KRAppRunData.getInstance() - .kr_account - .value! - .startsWith('9000'))) return SizedBox.shrink(); + if ((KRAppRunData.getInstance().isDeviceLogin())) return SizedBox.shrink(); return Padding( padding: EdgeInsets.symmetric(horizontal: 40.w), child: Column( diff --git a/lib/app/modules/kr_invite/views/kr_invite_view.dart b/lib/app/modules/kr_invite/views/kr_invite_view.dart index bdaa083..a7a282e 100755 --- a/lib/app/modules/kr_invite/views/kr_invite_view.dart +++ b/lib/app/modules/kr_invite/views/kr_invite_view.dart @@ -77,7 +77,7 @@ class KRInviteView extends GetView { ), ), - SizedBox(height: 26.w), + SizedBox(height: 10.w), // 🟢 第二行:我的邀请码 Container( padding: EdgeInsets.symmetric(horizontal: 4.w, vertical: 2.w), @@ -166,7 +166,7 @@ class KRInviteView extends GetView { fontWeight: FontWeight.bold, ), ), - SizedBox(height: 8.h), + SizedBox(height: 10.w), RepaintBoundary( child: TextField( controller: controller.otherInviteCodeController, diff --git a/pubspec.yaml b/pubspec.yaml index b26b054..cc1acef 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.0+105 +version: 1.0.0+106 environment: sdk: ">=3.5.0 <4.0.0"