fixed qr code settings
This commit is contained in:
parent
21172a6195
commit
12ad7a50e6
@ -43,17 +43,18 @@ public class QrCodeSettingsDataValidator extends DataValidator<QrCodeSettings> {
|
|||||||
throw new DataValidationException("Mobile app bundle is required to use custom application!");
|
throw new DataValidationException("Mobile app bundle is required to use custom application!");
|
||||||
}
|
}
|
||||||
if (!qrCodeSettings.isUseDefaultApp()) {
|
if (!qrCodeSettings.isUseDefaultApp()) {
|
||||||
|
if (qrCodeSettings.isAndroidEnabled()) {
|
||||||
MobileApp androidApp = mobileAppDao.findByBundleIdAndPlatformType(tenantId, mobileAppBundleId, PlatformType.ANDROID);
|
MobileApp androidApp = mobileAppDao.findByBundleIdAndPlatformType(tenantId, mobileAppBundleId, PlatformType.ANDROID);
|
||||||
StoreInfo androidStoreInfo = androidApp.getStoreInfo();
|
if (androidApp != null && androidApp.getStoreInfo() == null) {
|
||||||
if (androidStoreInfo == null) {
|
|
||||||
throw new DataValidationException("Android app store info is empty! ");
|
throw new DataValidationException("Android app store info is empty! ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (qrCodeSettings.isIosEnabled()) {
|
||||||
MobileApp iosApp = mobileAppDao.findByBundleIdAndPlatformType(tenantId, mobileAppBundleId, PlatformType.IOS);
|
MobileApp iosApp = mobileAppDao.findByBundleIdAndPlatformType(tenantId, mobileAppBundleId, PlatformType.IOS);
|
||||||
StoreInfo iosStoreInfo = iosApp.getStoreInfo();
|
if (iosApp != null && iosApp.getStoreInfo() == null) {
|
||||||
if (iosStoreInfo == null) {
|
|
||||||
throw new DataValidationException("IOS app store info is empty! ");
|
throw new DataValidationException("IOS app store info is empty! ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user