feat: 发布1.0.0.106
This commit is contained in:
parent
e7b8eaf8ab
commit
8b67d1f6b1
@ -3,7 +3,7 @@
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 54;
|
||||
objectVersion = 60;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
|
||||
@ -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格式是否有效
|
||||
|
||||
@ -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}");
|
||||
}
|
||||
|
||||
@ -235,11 +235,7 @@ class HIUserInfoView extends GetView<HIUserInfoController> {
|
||||
),
|
||||
// 👇 核心改动 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(
|
||||
|
||||
@ -77,7 +77,7 @@ class KRInviteView extends GetView<KRInviteController> {
|
||||
),
|
||||
),
|
||||
|
||||
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<KRInviteController> {
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 8.h),
|
||||
SizedBox(height: 10.w),
|
||||
RepaintBoundary(
|
||||
child: TextField(
|
||||
controller: controller.otherInviteCodeController,
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user