苹果商家版本不验证首页token

This commit is contained in:
2026-01-08 15:30:27 +08:00
parent 74c496efbe
commit 9144f06859
3 changed files with 6 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ class Room extends Model
$api_version = 0;
if ($system == 'iOS') {
$api_versions = db::name('version')->where(['type' => 2, 'status' => 1])->order('id', 'desc')->find();
$result = version_compare($api_versions['apiversion'],$app_version);
$result = version_compare($api_versions['newversion'],$app_version);
if ($result < 0) {
$api_version = 1;
}