用户实名注册限制

邀请收益规则调整
新手任务领取限制
红包功能调整
元旦换肤
This commit is contained in:
2025-12-30 16:45:30 +08:00
parent 6dc429ec36
commit 8538410fec
9 changed files with 206 additions and 15 deletions

View File

@@ -75,6 +75,22 @@ class Theme extends controller
$reslut['theme_name'] = $theme['theme_name'];
$reslut['is_open'] = 1;
}
return V(1,'操作成功', $reslut);
//版本号
$app_version = request()->header('App-Version');
$system = request()->header('system');
$api_version = 0;
if ($system == 'iOS') {
$api_versions = db::name('version')->where(['type' => 2, 'status' => 1])->order('id', 'desc')->find();
//app的版本和用户使用的当前版本比对
//$api_versions['newversion'] 是数据库当前的版本 也是用户使用的版本
//$app_version 有可能是appstore里面的审核版本 审核版本比用户的版本高
//审核版本给前端返回1
$result = version_compare($api_versions['newversion'],$app_version);
if ($result < 0) {//-1:前面版本小于后面版本,0:相等,1:前面版本大于后面版本
$api_version = 1;
}
}
return V(1,'操作成功', $reslut,$api_version);
}
}