multi-store/app/admin/controller/BaseAdminController.php
2024-05-30 21:37:55 +08:00

22 lines
499 B
PHP

<?php
namespace app\admin\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'];
}
}
}