更新 app/controller/api/Auth.php
日志更新
This commit is contained in:
parent
4e2c5c41ba
commit
04f82c4c71
@ -1536,9 +1536,9 @@ class Auth extends BaseController
|
|||||||
$queryBuilder = $queryBuilder->where('phone_brand', '');
|
$queryBuilder = $queryBuilder->where('phone_brand', '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$appInfo = $queryBuilder->order('version', 'desc')->fetchSql(false)->find();
|
$appInfo = ($queryBuilder->order('version', 'desc')->fetchSql(false)->find()) ?? (object)[];
|
||||||
if (empty($appInfo)) {
|
if (empty($appInfo)) {
|
||||||
$appInfo = (Db::name('AppUpdate')->where('type', $type)->where('version', '>', $version)->find()) ?? (object)[];
|
$appInfo = (Db::name('AppUpdate')->where('type', $type)->where('version', '>', $version)->find()) ?? (object)[];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user