Constant is not defined, please check the initialization part of the public controller
reply
0
Defined
protected function _initialize()
{
parent::_initialize();
//In the initial method of the public controller, create a constant to determine whether the user is logged in or has logged in
define('USER_ID', Session::get('user_id'));
}