修改显示版本号,切换预发布环境
This commit is contained in:
parent
e1c575ca8b
commit
60fe713ded
@ -1,5 +1,5 @@
|
|||||||
# Uncomment this line to define a global platform for your project
|
# Uncomment this line to define a global platform for your project
|
||||||
# platform :ios, '11.0'
|
platform :ios, '11.0'
|
||||||
#use_modular_headers!
|
#use_modular_headers!
|
||||||
use_frameworks! :linkage => :static
|
use_frameworks! :linkage => :static
|
||||||
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
|
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
|
||||||
@ -50,7 +50,7 @@ post_install do |installer|
|
|||||||
# ## dart: PermissionGroup.camera
|
# ## dart: PermissionGroup.camera
|
||||||
# 'PERMISSION_CAMERA=1'
|
# 'PERMISSION_CAMERA=1'
|
||||||
#
|
#
|
||||||
# Preprocessor definitions can be found in: https://github.com/Baseflow/flutter-permission-handler/blob/master/permission_handler_apple/ios/Classes/PermissionHandlerEnums.h
|
# Preprocessor definitions can be found inhttps://github.com/Baseflow/flutter-permission-handler/blob/master/permission_handler_apple/ios/Classes/PermissionHandlerEnums.h
|
||||||
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
|
||||||
'$(inherited)',
|
'$(inherited)',
|
||||||
|
|
||||||
|
|||||||
@ -138,9 +138,11 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver, BaseWidget {
|
|||||||
_aliyunPush.getDeviceId().then((deviceId) async {
|
_aliyunPush.getDeviceId().then((deviceId) async {
|
||||||
final data = await Storage.getString('userLoginData');
|
final data = await Storage.getString('userLoginData');
|
||||||
if (data!.isNotEmpty) {
|
if (data!.isNotEmpty) {
|
||||||
XSAliyunPushProvider()
|
if (Platform.isIOS) {
|
||||||
.pushBindDeviceID(deviceId, Platform.isAndroid ? 10 : 20);
|
XSAliyunPushProvider()
|
||||||
}
|
.pushBindDeviceID(deviceId, Platform.isAndroid ? 10 : 20);
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// //使用userid根据账号推送
|
// //使用userid根据账号推送
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import 'package:star_lock/blue/io_type.dart';
|
|||||||
import '../../../../blue/blue_manage.dart';
|
import '../../../../blue/blue_manage.dart';
|
||||||
import '../../../../blue/io_reply.dart';
|
import '../../../../blue/io_reply.dart';
|
||||||
import '../../../../blue/io_protocol/io_senderCustomPasswords.dart';
|
import '../../../../blue/io_protocol/io_senderCustomPasswords.dart';
|
||||||
import '../../../../blue/io_tool/io_manager.dart';
|
|
||||||
import '../../../../blue/io_tool/io_tool.dart';
|
import '../../../../blue/io_tool/io_tool.dart';
|
||||||
import '../../../../blue/io_tool/manager_event_bus.dart';
|
import '../../../../blue/io_tool/manager_event_bus.dart';
|
||||||
import '../../../../blue/sender_manage.dart';
|
import '../../../../blue/sender_manage.dart';
|
||||||
@ -14,6 +13,7 @@ import '../../../../tools/baseGetXController.dart';
|
|||||||
import '../../../../tools/storage.dart';
|
import '../../../../tools/storage.dart';
|
||||||
|
|
||||||
class PasswordKeyPerpetualLogic extends BaseGetXController {
|
class PasswordKeyPerpetualLogic extends BaseGetXController {
|
||||||
|
|
||||||
late DateTime getStartDateTime;
|
late DateTime getStartDateTime;
|
||||||
// 监听设备返回的数据
|
// 监听设备返回的数据
|
||||||
late StreamSubscription<Reply> _replySubscription;
|
late StreamSubscription<Reply> _replySubscription;
|
||||||
|
|||||||
@ -72,15 +72,21 @@ class _PasswordKeyPerpetualPageState extends State<PasswordKeyPerpetualPage> {
|
|||||||
if (int.parse(widget.type) == 4) {
|
if (int.parse(widget.type) == 4) {
|
||||||
cyclicModeStr = '周末';
|
cyclicModeStr = '周末';
|
||||||
|
|
||||||
_selectEffectiveDate = formatDate(dateTime, [HH, ':', nn]); //默认为当前时间
|
_selectEffectiveDate = "${formatDate(dateTime, [HH])}:00"; //默认为当前时间
|
||||||
_selectFailureDate = formatDate(dateTime, [HH, ':', nn]); //默认为当前时间
|
_selectFailureDate = "${formatDate(dateTime, [HH])}:00"; //默认为当前时间
|
||||||
startHours = _effectiveDateTime.hour;
|
startHours = _effectiveDateTime.hour;
|
||||||
endHours = _failureDateTime.hour;
|
endHours = _failureDateTime.hour;
|
||||||
} else {
|
} else if (int.parse(widget.type) == 3) {
|
||||||
|
// 自定义
|
||||||
_selectEffectiveDate = formatDate(
|
_selectEffectiveDate = formatDate(
|
||||||
dateTime, [yyyy, '-', mm, '-', dd, ' ', HH, ':', nn]); //默认为当前时间
|
dateTime, [yyyy, '-', mm, '-', dd, ' ', HH, ':', nn]); //默认为当前时间
|
||||||
_selectFailureDate = formatDate(
|
_selectFailureDate = formatDate(
|
||||||
dateTime, [yyyy, '-', mm, '-', dd, ' ', HH, ':', nn]); //默认为当前时间
|
dateTime, [yyyy, '-', mm, '-', dd, ' ', HH, ':', nn]); //默认为当前时间
|
||||||
|
} else {
|
||||||
|
_selectEffectiveDate = "${formatDate(
|
||||||
|
dateTime, [yyyy, '-', mm, '-', dd, ' ', HH])}:00"; //默认为当前时间
|
||||||
|
_selectFailureDate = "${formatDate(
|
||||||
|
dateTime, [yyyy, '-', mm, '-', dd, ' ', HH])}:00"; //默认为当前时间
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -213,10 +219,18 @@ class _PasswordKeyPerpetualPageState extends State<PasswordKeyPerpetualPage> {
|
|||||||
Pickers.showDatePicker(context, mode: DateMode.YMDHM,
|
Pickers.showDatePicker(context, mode: DateMode.YMDHM,
|
||||||
onConfirm: (p) {
|
onConfirm: (p) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_effectiveDateTime = DateTime.parse(
|
if (int.parse(widget.type) == 3) {
|
||||||
'${p.year}-${intToStr(p.month!)}-${intToStr(p.day!)} ${intToStr(p.hour!)}:${intToStr(p.minute!)}');
|
// 自定义
|
||||||
_selectEffectiveDate = formatDate(_effectiveDateTime,
|
_effectiveDateTime = DateTime.parse(
|
||||||
[yyyy, '-', mm, '-', dd, ' ', HH, ':', nn]);
|
'${p.year}-${intToStr(p.month!)}-${intToStr(p.day!)} ${intToStr(p.hour!)}:${intToStr(p.minute!)}');
|
||||||
|
_selectEffectiveDate = formatDate(_effectiveDateTime,
|
||||||
|
[yyyy, '-', mm, '-', dd, ' ', HH, ':', nn]); //默认为当前时间
|
||||||
|
} else {
|
||||||
|
_effectiveDateTime = DateTime.parse(
|
||||||
|
'${p.year}-${intToStr(p.month!)}-${intToStr(p.day!)} ${intToStr(p.hour!)}');
|
||||||
|
_selectEffectiveDate = "${formatDate(_effectiveDateTime,
|
||||||
|
[yyyy, '-', mm, '-', dd, ' ', HH, ':', nn])}00"; //默认为当前时间
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
@ -228,10 +242,18 @@ class _PasswordKeyPerpetualPageState extends State<PasswordKeyPerpetualPage> {
|
|||||||
Pickers.showDatePicker(context, mode: DateMode.YMDHM,
|
Pickers.showDatePicker(context, mode: DateMode.YMDHM,
|
||||||
onConfirm: (p) {
|
onConfirm: (p) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_failureDateTime = DateTime.parse(
|
if (int.parse(widget.type) == 3) {
|
||||||
'${p.year}-${intToStr(p.month!)}-${intToStr(p.day!)} ${intToStr(p.hour!)}:${intToStr(p.minute!)}');
|
// 自定义
|
||||||
_selectFailureDate = formatDate(_failureDateTime,
|
_failureDateTime = DateTime.parse(
|
||||||
[yyyy, '-', mm, '-', dd, ' ', HH, ':', nn]);
|
'${p.year}-${intToStr(p.month!)}-${intToStr(p.day!)} ${intToStr(p.hour!)}:${intToStr(p.minute!)}');
|
||||||
|
_selectFailureDate = formatDate(_failureDateTime,
|
||||||
|
[yyyy, '-', mm, '-', dd, ' ', HH, ':', nn]); //默认为当前时间
|
||||||
|
} else {
|
||||||
|
_failureDateTime = DateTime.parse(
|
||||||
|
'${p.year}-${intToStr(p.month!)}-${intToStr(p.day!)} ${intToStr(p.hour!)}');
|
||||||
|
_selectFailureDate = "${formatDate(_failureDateTime,
|
||||||
|
[yyyy, '-', mm, '-', dd, ' ', HH])}:00";
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
|
|||||||
@ -46,7 +46,7 @@ class _AbountPageState extends State<AbountPage> {
|
|||||||
height: 20.h,
|
height: 20.h,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"星锁 1.0.0",
|
"星锁 1.0.0.01(preRelease-20231118)",
|
||||||
style: TextStyle(fontSize: 24.sp, color: AppColors.blackColor),
|
style: TextStyle(fontSize: 24.sp, color: AppColors.blackColor),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
abstract class Api {
|
abstract class Api {
|
||||||
static String baseAddress = "https://pre.lock.star-lock.cn:8093"; //预发布环境
|
static String baseAddress = "https://pre.lock.star-lock.cn:8093"; //预发布环境
|
||||||
|
|
||||||
// final String baseUrl = "$baseAddress/api";
|
final String baseUrl = "$baseAddress/api";
|
||||||
// final String baseUrl = "http://test.lock.star-lock.cn/api"; // 葛工
|
// final String baseUrl = "http://test.lock.star-lock.cn/api"; // 葛工
|
||||||
// final String baseUrl = "https://lock.star-lock.cn/api"; // 测试环境
|
// final String baseUrl = "https://lock.star-lock.cn/api"; // 测试环境
|
||||||
// final String baseUrl = "http://wenlin.lock.star-lock.cn/api"; //曾工
|
// final String baseUrl = "http://wenlin.lock.star-lock.cn/api"; //曾工
|
||||||
final String baseUrl = "http://192.168.56.101:8099/api"; //曾工本地
|
// final String baseUrl = "http://192.168.56.101:8099/api"; //曾工本地
|
||||||
// final String baseUrl = "http://192.168.1.14:8099/api"; //葛工开发环境地址
|
// final String baseUrl = "http://192.168.1.14:8099/api"; //葛工开发环境地址
|
||||||
|
|
||||||
// 登录注册
|
// 登录注册
|
||||||
|
|||||||
@ -9,8 +9,8 @@ class NoData extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
width: 1.sw,
|
width: 1.sw,
|
||||||
// height: 1.sh - ScreenUtil().statusBarHeight,
|
height: 1.sh - ScreenUtil().statusBarHeight,
|
||||||
height: 1.sw,
|
// height: 1.sw,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user