webman-admin/app/admin/controller/BaseAdminController.php
2023-02-28 15:13:10 +08:00

24 lines
541 B
PHP

<?php
namespace app\admin\controller;
use app\common\controller\BaseLikeAdminController;
use app\common\lists\BaseDataLists;
class BaseAdminController extends BaseLikeAdminController
{
public $notNeedLogin = [];
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'];
}
}
}