!5 update app/common.php.

Merge pull request !5 from VeVe/N/A
This commit is contained in:
挨踢骑术 2022-06-20 04:29:36 +00:00 committed by Gitee
commit 9dbb0ae374
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -313,14 +313,14 @@ function add_log($type, $param_id = '', $param = [])
$data['function'] = strtolower(app('request')->action());
$parameter = $data['module'] . '/' . $data['controller'] . '/' . $data['function'];
$rule_menu = Db::name('AdminRule')->where(array('src' => $parameter))->find();
if($type == 'upload'){
$data['title'] = $param['name'];
$data['subject'] = '文件';
}
if($rule_menu){
$data['title'] = $rule_menu['title'];
$data['subject'] = $rule_menu['name'];
}
elseif($type == 'upload'){
$data['title'] = $param['name'];
$data['subject'] = '文件';
}
else{
$data['title'] = '';
$data['subject'] ='系统';