| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- // +----------------------------------------------------------------------
- // | LARAVEL8.0 框架 [ LARAVEL ][ RXThinkCMF ]
- // +----------------------------------------------------------------------
- // | 版权所有 2017~2021 LARAVEL研发中心
- // +----------------------------------------------------------------------
- // | 官方网站: http://www.laravel.cn
- // +----------------------------------------------------------------------
- // | Author: laravel开发员 <laravel.qq.com>
- // +----------------------------------------------------------------------
- namespace App\Http\Controllers\Admin;
- use App\Services\Common\ActionLogService;
- /**
- * 行为日志-控制器
- * @author laravel开发员
- * @since 2020/11/12
- * Class ActionLogController
- * @package App\Http\Controllers
- */
- class ActionLogController extends Backend
- {
- /**
- * 构造函数
- * @author laravel开发员
- * @since 2020/11/12
- * ActionLogController constructor.
- */
- public function __construct()
- {
- parent::__construct();
- $this->service = new ActionLogService();
- }
- public function index()
- {
- $username = '';
- if($this->userInfo['user_type'] == 2){
- $username = $this->userInfo['username'];
- }
- request()->merge(['username'=> $username]);
- $result = $this->service->getList();
- return $result;
- }
- }
|