修改下载逻辑是ios去除wgt的包
This commit is contained in:
parent
3da5ebcabf
commit
47a17f8f37
@ -1593,6 +1593,13 @@ class Auth extends BaseController
|
|||||||
} elseif (strpos($agent, 'android') !== false) {
|
} elseif (strpos($agent, 'android') !== false) {
|
||||||
// 检查是否为Android设备
|
// 检查是否为Android设备
|
||||||
$appInfo = Db::name('AppUpdate')->where('type', $type)->order('id','desc')->find();
|
$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 {
|
} else {
|
||||||
$appInfo=[];
|
$appInfo=[];
|
||||||
// 如果都不是,则输出其他
|
// 如果都不是,则输出其他
|
||||||
|
Loading…
x
Reference in New Issue
Block a user