feat: 发布1.0.0.106

This commit is contained in:
speakeloudest 2026-01-26 00:26:27 -08:00
parent e7b8eaf8ab
commit 8b67d1f6b1
6 changed files with 14 additions and 11 deletions

View File

@ -3,7 +3,7 @@
archiveVersion = 1; archiveVersion = 1;
classes = { classes = {
}; };
objectVersion = 54; objectVersion = 60;
objects = { objects = {
/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */

View File

@ -97,7 +97,7 @@ class KRAppRunData {
/// ///
bool isDeviceLogin() { bool isDeviceLogin() {
// "device_设备ID" // "device_设备ID"
return kr_account.value != null && kr_account.value!.startsWith('9000'); return kr_authType.value != null && kr_authType.value == 'device';
} }
/// 🔧 2.1Token格式是否有效 /// 🔧 2.1Token格式是否有效

View File

@ -9,6 +9,7 @@ import 'package:get/get.dart';
import 'package:gal/gal.dart'; import 'package:gal/gal.dart';
import 'package:kaer_with_panels/app/utils/kr_common_util.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:kaer_with_panels/app/widgets/dialogs/hi_dialog.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher/url_launcher.dart';
class HIAntiLostController extends GetxController { class HIAntiLostController extends GetxController {
@ -51,7 +52,13 @@ class HIAntiLostController extends GetxController {
debugPrint("Save image error: $e"); debugPrint("Save image error: $e");
if (e is GalException) { if (e is GalException) {
if (e.type == GalExceptionType.accessDenied) { if (e.type == GalExceptionType.accessDenied) {
await Gal.requestAccess(); HIDialog.show(
title: "提示",
message: "请到-设置-应用-Hi快vpn-相册权限-允许保存相片打开保存图片权限",
confirmText: "去设置",
cancelText: "取消",
onConfirm: () => openAppSettings(),
);
} else { } else {
KRCommonUtil.kr_showToast("保存失败: ${e.type.name}"); KRCommonUtil.kr_showToast("保存失败: ${e.type.name}");
} }

View File

@ -235,11 +235,7 @@ class HIUserInfoView extends GetView<HIUserInfoController> {
), ),
// 👇 3: Expanded // 👇 3: Expanded
Obx(() { Obx(() {
if ((KRAppRunData.getInstance().kr_account.value != null && if ((KRAppRunData.getInstance().isDeviceLogin())) return SizedBox.shrink();
KRAppRunData.getInstance()
.kr_account
.value!
.startsWith('9000'))) return SizedBox.shrink();
return Padding( return Padding(
padding: EdgeInsets.symmetric(horizontal: 40.w), padding: EdgeInsets.symmetric(horizontal: 40.w),
child: Column( child: Column(

View File

@ -77,7 +77,7 @@ class KRInviteView extends GetView<KRInviteController> {
), ),
), ),
SizedBox(height: 26.w), SizedBox(height: 10.w),
// 🟢 // 🟢
Container( Container(
padding: EdgeInsets.symmetric(horizontal: 4.w, vertical: 2.w), padding: EdgeInsets.symmetric(horizontal: 4.w, vertical: 2.w),
@ -166,7 +166,7 @@ class KRInviteView extends GetView<KRInviteController> {
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
), ),
SizedBox(height: 8.h), SizedBox(height: 10.w),
RepaintBoundary( RepaintBoundary(
child: TextField( child: TextField(
controller: controller.otherInviteCodeController, controller: controller.otherInviteCodeController,

View File

@ -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 # 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 # 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. # 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: environment:
sdk: ">=3.5.0 <4.0.0" sdk: ">=3.5.0 <4.0.0"