{"message":"Undefined property: think\\view\\driver\\Think::$app","status":500,"data":[],"debug":{"name":"think\\exception\\ErrorException","file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/think-view\/src\/Think.php","line":110,"code":2,"message":"Undefined property: think\\view\\driver\\Think::$app","trace":[{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/think-view\/src\/Think.php","line":110,"function":"appError","class":"think\\initializer\\Error","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/View.php","line":90,"function":"fetch","class":"think\\view\\driver\\Think","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/View.php","line":126,"function":"think\\{closure}","class":"think\\View","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/View.php","line":91,"function":"getContent","class":"think\\View","type":"->"},{"function":"fetch","class":"think\\View","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Facade.php","line":96,"function":"call_user_func_array"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/app\/home\/controller\/Index.php","line":29,"function":"__callStatic","class":"think\\Facade","type":"::"},{"function":"index","class":"app\\home\\controller\\Index","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Container.php","line":344,"function":"invokeArgs","class":"ReflectionMethod","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/route\/dispatch\/Controller.php","line":110,"function":"invokeReflectMethod","class":"think\\Container","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":59,"function":"think\\route\\dispatch\\{closure}","class":"think\\route\\dispatch\\Controller","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":66,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/route\/dispatch\/Controller.php","line":113,"function":"then","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/route\/Dispatch.php","line":90,"function":"exec","class":"think\\route\\dispatch\\Controller","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Route.php","line":785,"function":"run","class":"think\\route\\Dispatch","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":59,"function":"think\\{closure}","class":"think\\Route","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":66,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Route.php","line":786,"function":"then","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Http.php","line":216,"function":"dispatch","class":"think\\Route","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Http.php","line":206,"function":"dispatchToRoute","class":"think\\Http","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":59,"function":"think\\{closure}","class":"think\\Http","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/think-multi-app\/src\/MultiApp.php","line":71,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":59,"function":"think\\app\\{closure}","class":"think\\app\\MultiApp","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":66,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/think-multi-app\/src\/MultiApp.php","line":72,"function":"then","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"think\\app\\MultiApp","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":142,"function":"call_user_func"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/cores\/middleware\/AppLog.php","line":35,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"cores\\middleware\\AppLog","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":142,"function":"call_user_func"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/cores\/middleware\/AllowCrossDomain.php","line":90,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"cores\\middleware\\AllowCrossDomain","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":142,"function":"call_user_func"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":66,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Http.php","line":207,"function":"then","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/vendor\/topthink\/framework\/src\/think\/Http.php","line":170,"function":"runWithRequest","class":"think\\Http","type":"->"},{"file":"\/www\/wwwroot\/shop.yuyuhu.com\/public\/index.php","line":21,"function":"run","class":"think\\Http","type":"->"}],"source":{"first":101,"source":["     * @param  string $template 模板文件\n","     * @param  array  $data 模板变量\n","     * @return void\n","     *\/\n","    public function fetch(string $template, array $data = []): void\n","    {\n","        if (empty($this->config['view_path'])) {\n","            $view = $this->config['view_dir_name'];\n","\n","            if (is_dir($this->app->getAppPath() . $view)) {\n","                $path = $this->app->getAppPath() . $view . DIRECTORY_SEPARATOR;\n","            } else {\n","                $appName = $this->app->http->getName();\n","                $path    = $this->app->getRootPath() . $view . DIRECTORY_SEPARATOR . ($appName ? $appName . DIRECTORY_SEPARATOR : '');\n","            }\n","\n","            $this->config['view_path'] = $path;\n","            $this->template->view_path = $path;\n","        }\n"]}}}