版本号比对

This commit is contained in:
2025-12-15 10:06:20 +08:00
parent ca48f2682c
commit 4ca0bbd84d
7 changed files with 24 additions and 17 deletions

View File

@@ -34,7 +34,7 @@ class BaseCom extends Controller
if(empty($version)){
$version = request()->header('App-Version');
}
$zhenshi_version = db::name('version')->where('type', 2)->value('oldversion');
$zhenshi_version = db::name('version')->where('type', 2)->value('apiversion');
$result = version_compare($version,$zhenshi_version);
//请求的接口
$api = request()->controller().'/'.request()->action();