1、修改了打包是lite版本

2、修复锁通通点击开锁按钮,没有动效问题
3、修改版本上架
This commit is contained in:
魏少阳 2024-08-12 10:04:40 +08:00
parent 43f969b6c2
commit 6e0a314a71
2 changed files with 20 additions and 22 deletions

View File

@ -89,18 +89,10 @@ class _LockDetailPageState extends State<LockDetailPage>
// //
Widget xhjWidget() { Widget xhjWidget() {
final bool isShowTip = (state.keyInfos.value.keyType == final bool isShowTip =
XSConstantMacro.keyTypeTime || (state.keyInfos.value.keyType == XSConstantMacro.keyTypeTime || state.keyInfos.value.keyType == XSConstantMacro.keyTypeLoop)
state.keyInfos.value.keyType == && (DateTool().compareTimeGetDaysFromNow(state.keyInfos.value.endDate!) <= 15 && DateTool().compareTimeGetDaysFromNow(state.keyInfos.value.endDate!) >= 0)
XSConstantMacro.keyTypeLoop) && // && (state.keyInfos.value.keyStatus == XSConstantMacro.keyStatusNormalUse || state.keyInfos.value.keyStatus == XSConstantMacro.keyStatusWaitReceive);
(DateTool().compareTimeGetDaysFromNow(state.keyInfos.value.endDate!) <=
15 &&
DateTool()
.compareTimeGetDaysFromNow(state.keyInfos.value.endDate!) >=
0) && // 030
(state.keyInfos.value.keyStatus == XSConstantMacro.keyStatusNormalUse ||
state.keyInfos.value.keyStatus ==
XSConstantMacro.keyStatusWaitReceive);
return Scaffold( return Scaffold(
backgroundColor: Colors.white, backgroundColor: Colors.white,
body: Obx(() { body: Obx(() {
@ -1393,7 +1385,13 @@ class _LockDetailPageState extends State<LockDetailPage>
} }
// //
void isNeedRealNameAuthThenOpenLock() { Future<void> isNeedRealNameAuthThenOpenLock() async {
final bool isNetWork = await LockMainLogic.to()?.judgeTheNetwork() ?? false;
final bool isOpenLockNeedOnline = state.isOpenLockNeedOnline.value == 0;
if (!isOpenLockNeedOnline && !isNetWork) {
return;
}
state.nextAuthTime.value = state.keyInfos.value.nextFaceValidateTime ?? 0; state.nextAuthTime.value = state.keyInfos.value.nextFaceValidateTime ?? 0;
if (state.keyInfos.value.faceAuthentication == 1 && if (state.keyInfos.value.faceAuthentication == 1 &&
state.nextAuthTime.value > 0 && state.nextAuthTime.value > 0 &&
@ -1404,24 +1402,24 @@ class _LockDetailPageState extends State<LockDetailPage>
state.nextAuthTime.value = getNextAuthTime; state.nextAuthTime.value = getNextAuthTime;
if (isSuccess) { if (isSuccess) {
// //
startOpenLock(); setState(startOpenLock);
} }
}).initAliyunRealNameAuth(); }).initAliyunRealNameAuth();
} else { } else {
// //
startOpenLock(); setState(startOpenLock);
} }
} }
Future<void> startOpenLock() async { void startOpenLock() {
if (state.openLockBtnState.value == 1) { if (state.openLockBtnState.value == 1) {
return; return;
} }
final bool isNetWork = await LockMainLogic.to()?.judgeTheNetwork() ?? false; // final bool isNetWork = await LockMainLogic.to()?.judgeTheNetwork() ?? false;
final bool isOpenLockNeedOnline = state.isOpenLockNeedOnline.value == 0; final bool isOpenLockNeedOnline = state.isOpenLockNeedOnline.value == 0;
if (!isOpenLockNeedOnline && !isNetWork) { // if (!isOpenLockNeedOnline && !isNetWork) {
return; // return;
} // }
state.iSOpenLock.value = true; state.iSOpenLock.value = true;
state.openLockBtnState.value = 1; state.openLockBtnState.value = 1;
state.animationController!.forward(); state.animationController!.forward();

View File

@ -25,11 +25,11 @@ case $environment in
api_prefix='https://pre.lock.star-lock.cn' api_prefix='https://pre.lock.star-lock.cn'
;; ;;
sky) sky)
main_file="lib/main_sky_full.dart" main_file="lib/main_sky_lite.dart"
api_prefix='https://lock.skychip.top' api_prefix='https://lock.skychip.top'
;; ;;
xhj) xhj)
main_file="lib/main_xhj_full.dart" main_file="lib/main_xhj_lite.dart"
api_prefix='https://lock.xhjcn.ltd' api_prefix='https://lock.xhjcn.ltd'
;; ;;
local) local)