This commit is contained in:
JaguarJack
2020-09-07 08:29:12 +08:00
parent a6cebc3750
commit d533aeaa9e
6 changed files with 109 additions and 161 deletions

View File

@@ -1,6 +1,7 @@
<?php
namespace catcher;
use catchAdmin\system\model\Config;
use think\facade\Db;
use think\helper\Str;
@@ -129,4 +130,16 @@ class Utils
{
return request()->user()->id == config('catch.permissions.super_admin_id');
}
/**
* 获取配置
*
* @time 2020年09月07日
* @param $key
* @return mixed
*/
public static function config($key)
{
return Config::where('key', $key)->value('value');
}
}