1
This commit is contained in:
20
app/admin/service/ConfigService.php
Normal file
20
app/admin/service/ConfigService.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\service;
|
||||
|
||||
use think\facade\Cache;
|
||||
|
||||
class ConfigService
|
||||
{
|
||||
|
||||
public static function getVersion()
|
||||
{
|
||||
$version = cache('site_version');
|
||||
if (empty($version)) {
|
||||
$version = sysConfig('site', 'site_version');
|
||||
cache('site_version', $version);
|
||||
}
|
||||
return $version;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user