webman-admin/app/admin/controller/BaseAdminController.php
2023-09-20 13:54:09 +08:00

22 lines
509 B
PHP

<?php
namespace app\admin\controller;
use app\common\controller\BaseLikeAdminController;
use app\common\lists\BaseDataLists;
class BaseAdminController extends BaseLikeAdminController
{
protected $adminId = 0;
protected $adminInfo = [];
public function initialize()
{
if (isset($this->request->adminInfo) && $this->request->adminInfo) {
$this->adminInfo = $this->request->adminInfo;
$this->adminId = $this->request->adminInfo['admin_id'];
}
}
}