diff --git a/app/Http/Controllers/Api/AppVersionController.php b/app/Http/Controllers/Api/AppVersionController.php index 42b35f4..8e9e66e 100644 --- a/app/Http/Controllers/Api/AppVersionController.php +++ b/app/Http/Controllers/Api/AppVersionController.php @@ -40,7 +40,7 @@ class AppVersionController extends Controller // 全量包更新 if ($apkUpdateVersion) { - if ((string) $android->apk_url === '') { + if ((string) $android->apk_url !== '') { $android->update_strategy = AppUpdateStrategy::Apk; } else { $android = $apkUpdateVersion; @@ -62,7 +62,7 @@ class AppVersionController extends Controller // 全量包更新 if ($apkUpdateVersion) { - if ((string) $ios->apk_url === '') { + if ((string) $ios->apk_url !== '') { $ios->update_strategy = AppUpdateStrategy::Apk; } else { $ios = $apkUpdateVersion;