fix(iOS): disable online catalogs on iOS from appstore channel (#3102)

This commit is contained in:
Huang Xin
2026-01-29 05:52:59 +01:00
committed by GitHub
parent 01b4e3530d
commit d7470f4139
@@ -451,11 +451,10 @@ export class NativeAppService extends BaseAppService {
});
}
if (this.isIOSApp) {
this.isOnlineCatalogsAccessible = this.distChannel !== 'appstore';
const res = await getStorefrontRegionCode();
if (res.regionCode) {
this.storefrontRegionCode = res.regionCode;
this.isOnlineCatalogsAccessible =
this.storefrontRegionCode.toLowerCase() !== 'chn' || this.distChannel !== 'appstore';
}
}
await this.prepareBooksDir();