修改下载逻辑是ios去除wgt的包

This commit is contained in:
liu 2024-03-18 10:12:24 +08:00
parent 3da5ebcabf
commit 47a17f8f37

View File

@ -1593,6 +1593,13 @@ class Auth extends BaseController
} elseif (strpos($agent, 'android') !== false) {
// 检查是否为Android设备
$appInfo = Db::name('AppUpdate')->where('type', $type)->order('id','desc')->find();
if($agent == 'ios'){
$pattern = '/\.wgt$/i';
if (preg_match($pattern, basename($appInfo['dow_url']))) {
$appInfo =[];
}
}
} else {
$appInfo=[];
// 如果都不是,则输出其他