mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-15 04:52:50 +00:00
1 line
1000 B
PHP
1 line
1000 B
PHP
<?php
|
|
|
|
namespace app\admin\controller\system;
|
|
|
|
use app\admin\controller\AuthController;
|
|
use app\admin\model\system\SystemConfig;
|
|
use app\admin\model\system\SystemAdmin;
|
|
use app\admin\model\system\SystemLog as LogModel;
|
|
use service\UtilService as Util;
|
|
|
|
/**
|
|
* 管理员操作记录表控制器
|
|
* Class SystemLog
|
|
* @package app\admin\controller\system
|
|
*/
|
|
class SystemLog extends AuthController
|
|
|
|
{
|
|
|
|
/**
|
|
* 显示操作记录
|
|
*/
|
|
public function index(){
|
|
$log_cycle = SystemConfig::getValue('log_cycle')?:90;
|
|
LogModel::deleteLog($log_cycle);
|
|
$where = Util::getMore([
|
|
['pages',''],
|
|
['admin_id',''],
|
|
['data',''],
|
|
],$this->request);
|
|
$where['level'] = $this->adminInfo['level'];
|
|
$this->assign('where',$where);
|
|
$this->assign('admin',SystemAdmin::getOrdAdmin('id,real_name',$this->adminInfo['level']));
|
|
$this->assign(LogModel::systemPage($where));
|
|
return $this->fetch();
|
|
}
|
|
|
|
|
|
}
|
|
|