修复google因为演示模式被拒的问题
This commit is contained in:
parent
b8c32103f7
commit
91772036be
@ -7,7 +7,7 @@
|
||||
buildImplicitDependencies = "YES">
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug-pre"
|
||||
buildConfiguration = "Release-pre"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
@ -24,7 +24,7 @@
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Debug-pre"
|
||||
buildConfiguration = "Release-pre"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
@ -62,7 +62,7 @@
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug-pre">
|
||||
buildConfiguration = "Release-pre">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release-pre"
|
||||
|
||||
@ -31,7 +31,7 @@ class SendElectronicKeyPage extends StatefulWidget {
|
||||
class _SendElectronicKeyPageState extends State<SendElectronicKeyPage> {
|
||||
final logic = Get.put(SendElectronicKeyLogic());
|
||||
final state = Get.find<SendElectronicKeyLogic>().state;
|
||||
bool isDemoMode = false;
|
||||
bool isDemoMode = true;
|
||||
|
||||
@override
|
||||
initState() {
|
||||
@ -49,13 +49,12 @@ class _SendElectronicKeyPageState extends State<SendElectronicKeyPage> {
|
||||
state.type.value = widget.type;
|
||||
|
||||
return SingleChildScrollView(
|
||||
child: Obx(() => indexChangeWidget()),
|
||||
child: isDemoMode ? indexChangeWidget() : Obx(() => indexChangeWidget()),
|
||||
);
|
||||
}
|
||||
|
||||
Widget indexChangeWidget() {
|
||||
if (state.isSendSuccess.value == true &&
|
||||
state.sendSucceedType.value.toString() == widget.type) {
|
||||
if (state.isSendSuccess.value == true && state.sendSucceedType.value.toString() == widget.type) {
|
||||
return sendElectronicKeySucceed();
|
||||
} else {
|
||||
switch (int.parse(widget.type)) {
|
||||
@ -518,8 +517,7 @@ class _SendElectronicKeyPageState extends State<SendElectronicKeyPage> {
|
||||
// 远程开锁
|
||||
Widget remoteUnlockingWidget() {
|
||||
return Visibility(
|
||||
visible:
|
||||
state.keyInfo.value.lockSetting!.remoteUnlock == 1 ? true : false,
|
||||
visible: isDemoMode ? false: (state.keyInfo.value.lockSetting!.remoteUnlock == 1 ? true : false),
|
||||
child: Column(
|
||||
children: [
|
||||
CommonItem(
|
||||
|
||||
@ -45,6 +45,8 @@ class SendElectronicKeyState {
|
||||
|
||||
SendElectronicKeyState() {
|
||||
Map map = Get.arguments;
|
||||
keyInfo.value = map["keyInfo"];
|
||||
if ((map["keyInfo"] != null)) {
|
||||
keyInfo.value = map["keyInfo"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,18 +25,20 @@ class FingerprintDetailState{
|
||||
final isStressFingerprint = false.obs;
|
||||
FingerprintDetailState() {
|
||||
Map map = Get.arguments;
|
||||
fingerprintItemData.value = map["fingerprintItemData"];
|
||||
keyId.value = fingerprintItemData.value.fingerprintId!;
|
||||
typeNumber.value = fingerprintItemData.value.fingerprintNumber!;
|
||||
typeName.value = fingerprintItemData.value.fingerprintName!;
|
||||
changeNameController.text = typeName.value;
|
||||
effectiveDateTime.value = fingerprintItemData.value.startDate!;
|
||||
failureDateTime.value = fingerprintItemData.value.endDate!;
|
||||
keyType.value = fingerprintItemData.value.fingerprintType!;
|
||||
adder.value = fingerprintItemData.value.senderUsername!;
|
||||
addTime.value = fingerprintItemData.value.createDate!;
|
||||
isStressFingerprint.value = fingerprintItemData.value.isCoerced! == 2 ? true : false;
|
||||
weekDay.value = fingerprintItemData.value.weekDay!;
|
||||
|
||||
if ((map["keyInfo"] != null)) {
|
||||
fingerprintItemData.value = map["fingerprintItemData"];
|
||||
keyId.value = fingerprintItemData.value.fingerprintId!;
|
||||
typeNumber.value = fingerprintItemData.value.fingerprintNumber!;
|
||||
typeName.value = fingerprintItemData.value.fingerprintName!;
|
||||
changeNameController.text = typeName.value;
|
||||
effectiveDateTime.value = fingerprintItemData.value.startDate!;
|
||||
failureDateTime.value = fingerprintItemData.value.endDate!;
|
||||
keyType.value = fingerprintItemData.value.fingerprintType!;
|
||||
adder.value = fingerprintItemData.value.senderUsername!;
|
||||
addTime.value = fingerprintItemData.value.createDate!;
|
||||
isStressFingerprint.value =
|
||||
fingerprintItemData.value.isCoerced! == 2 ? true : false;
|
||||
weekDay.value = fingerprintItemData.value.weekDay!;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -270,7 +270,7 @@ class _DemoModeLockDetailPageState extends State<DemoModeLockDetailPage> {
|
||||
TranslationLoader.lanKeys!.fingerprint!.tr, () {
|
||||
// gotoLogin();
|
||||
|
||||
Get.toNamed(Routers.fingerprintDetailPage,
|
||||
Get.toNamed(Routers.fingerprintListPage,
|
||||
arguments: {"lockId": 1, "fromType": 1});
|
||||
}),
|
||||
|
||||
@ -290,11 +290,11 @@ class _DemoModeLockDetailPageState extends State<DemoModeLockDetailPage> {
|
||||
//可视对讲门锁新增->人脸
|
||||
showWidgetArr.add(
|
||||
bottomItem('images/main/icon_face.png', '人脸', () {
|
||||
gotoLogin();
|
||||
// gotoLogin();
|
||||
|
||||
// Navigator.pushNamed(context, Routers.otherTypeKeyListPage,
|
||||
// arguments: 1);
|
||||
// Toast.show(msg: "功能暂未开放");
|
||||
Get.toNamed(Routers.faceList, arguments: {
|
||||
"lockId": 1,
|
||||
});
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ class _AboutPageState extends State<AboutPage> {
|
||||
),
|
||||
SizedBox(height: 20.h),
|
||||
Text(
|
||||
"${F.title} 1.0.0.10(preRelease-20240201)",
|
||||
"${F.title} 1.0.0.11(preRelease-20240301)",
|
||||
style: TextStyle(fontSize: 24.sp, color: AppColors.blackColor),
|
||||
),
|
||||
SizedBox(height: 20.h),
|
||||
|
||||
@ -17,7 +17,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+10
|
||||
version: 1.0.0+11
|
||||
|
||||
environment:
|
||||
sdk: '>=2.12.0 <3.0.0'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user