This commit is contained in:
2020-07-10 23:39:07 +08:00
parent c1b81d6e13
commit 2d44172d8f
2 changed files with 5 additions and 2 deletions

View File

@@ -168,11 +168,11 @@ function CLLMainLua.onCheckUpgrader(isHaveUpdated)
end end
function CLLMainLua.begain() function CLLMainLua.begain()
pcall(fitIphoneX)
local success, msg = pcall(CLLMainLua.init) local success, msg = pcall(CLLMainLua.init)
if not success then if not success then
printe(msg) printe(msg)
end end
pcall(fitIphoneX)
-- 处理开始 -- 处理开始
if (CLCfgBase.self.isEditMode) then if (CLCfgBase.self.isEditMode) then

View File

@@ -595,8 +595,11 @@ end
function fitIphoneX() function fitIphoneX()
local mode = SystemInfo.deviceModel local mode = SystemInfo.deviceModel
printw(mode)
if if
string.find(mode, "iPhone10,3") or string.find(mode, "iPhone10,6") or string.find(mode, "iPhone11,3") or string.find(mode, "iPhone10,3") or
string.find(mode, "iPhone10,6") or
string.find(mode, "iPhone11,3") or
string.find(mode, "iPhone11,6") or -- XS Max string.find(mode, "iPhone11,6") or -- XS Max
string.find(mode, "iPhone11,8") string.find(mode, "iPhone11,8")
then -- xr then -- xr