adminInfo = $this->request->adminInfo; $this->adminId = $this->request->adminId; } /** * @notes 获取错误信息 * @return string * @author 段誉 * @date 2021/7/21 18:23 */ public static function getError() : string { if (false === self::hasError()) { return '系统错误'; } return self::$error; } /** * @notes 设置错误信息 * @param $error * @author 段誉 * @date 2021/7/21 18:20 */ public static function setError($error) : void { !empty($error) && self::$error = $error; } /** * @notes 是否存在错误 * @return bool * @author 段誉 * @date 2021/7/21 18:32 */ public static function hasError() : bool { return !empty(self::$error); } }