Jing Li 2024-05-31 10:16:05 +08:00
parent 451291b3b2
commit 987c921052
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class AppVersionController extends Controller
switch ($os) {
case AppOs::Android:
if ($android->version > $version + 1) {
if ($android?->version > $version + 1) {
if (! $android->isApkUpdate()) {
$apkUpdateVersion = AppVersion::onlyReleased()
->where('os', AppOs::Android)
@ -51,7 +51,7 @@ class AppVersionController extends Controller
break;
case AppOs::Ios:
if ($ios->version > $version + 1) {
if ($ios?->version > $version + 1) {
if (! $ios->isApkUpdate()) {
$apkUpdateVersion = AppVersion::onlyReleased()
->where('os', AppOs::Ios)