修改为更严谨的判断

This commit is contained in:
nonameShijian 2024-01-29 20:52:37 +08:00
parent 9cfea9d2b9
commit 18d6c10a7b
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ export function canUseHttpProtocol() {
// 手机端
if (window.cordova) {
// 直接确定包名
if (nonameInitialized.includes('com.noname.shijian')) {
if (nonameInitialized.endsWith('com.noname.shijian/')) {
// 每个app自定义能升级的渠道比如判断版本
// @ts-ignore
return window.noname_shijianInterfaces.getApkVersion() >= 16000;