lihaiMiddleOffice/app/oa/controller/BaseAdminController.php
2025-02-27 09:55:33 +08:00

22 lines
496 B
PHP

<?php
namespace app\oa\controller;
use app\common\controller\BaseLikeController;
use app\common\lists\BaseDataLists;
class BaseAdminController extends BaseLikeController
{
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'];
}
}
}