/** * 初始化 * @access public * @param string $type 输出类型 * @return \think\Response */ public static function instance($type = '') { if (is_null(self::$instance)) { self::$instance = new static($type); } return self::$instance; }