{"msg":"mkdir(): Permission denied","code":0,"data":[],"debug":{"name":"think\\exception\\ErrorException","file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/think-template\/src\/template\/driver\/File.php","line":34,"code":2,"msg":"mkdir(): Permission denied","trace":[{"function":"appError","class":"think\\initializer\\Error","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/think-template\/src\/template\/driver\/File.php","line":34,"function":"mkdir"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/think-template\/src\/Template.php","line":423,"function":"write","class":"think\\template\\driver\\File","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/think-template\/src\/Template.php","line":242,"function":"compiler","class":"think\\Template","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/think-view\/src\/Think.php","line":131,"function":"fetch","class":"think\\Template","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/View.php","line":90,"function":"fetch","class":"think\\view\\driver\\Think","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/View.php","line":122,"function":"think\\{closure}","class":"think\\View","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/View.php","line":89,"function":"getContent","class":"think\\View","type":"->"},{"function":"fetch","class":"think\\View","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Facade.php","line":97,"function":"call_user_func_array"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/app\/merchant\/controller\/Controller.php","line":338,"function":"__callStatic","class":"think\\Facade","type":"::"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/app\/merchant\/controller\/Passport.php","line":43,"function":"fetch","class":"app\\merchant\\controller\\Controller","type":"->"},{"function":"login","class":"app\\merchant\\controller\\Passport","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Container.php","line":345,"function":"invokeArgs","class":"ReflectionMethod","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/route\/dispatch\/Controller.php","line":110,"function":"invokeReflectMethod","class":"think\\Container","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":59,"function":"think\\route\\dispatch\\{closure}","class":"think\\route\\dispatch\\Controller","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":66,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/route\/dispatch\/Controller.php","line":84,"function":"then","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/route\/Dispatch.php","line":52,"function":"exec","class":"think\\route\\dispatch\\Controller","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Route.php","line":755,"function":"run","class":"think\\route\\Dispatch","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":59,"function":"think\\{closure}","class":"think\\Route","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":66,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Route.php","line":754,"function":"then","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Http.php","line":208,"function":"dispatch","class":"think\\Route","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Http.php","line":198,"function":"dispatchToRoute","class":"think\\Http","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":59,"function":"think\\{closure}","class":"think\\Http","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/think-multi-app\/src\/MultiApp.php","line":51,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":59,"function":"think\\app\\{closure}","class":"think\\app\\MultiApp","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":66,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/think-multi-app\/src\/MultiApp.php","line":50,"function":"then","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"think\\app\\MultiApp","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":134,"function":"call_user_func"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/cores\/middleware\/AppLog.php","line":36,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"cores\\middleware\\AppLog","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":134,"function":"call_user_func"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/cores\/middleware\/AllowCrossDomain.php","line":91,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"cores\\middleware\\AllowCrossDomain","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":134,"function":"call_user_func"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/middleware\/SessionInit.php","line":58,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"think\\middleware\\SessionInit","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":134,"function":"call_user_func"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/think-trace\/src\/TraceDebug.php","line":71,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"think\\trace\\TraceDebug","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":134,"function":"call_user_func"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":66,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Http.php","line":197,"function":"then","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Http.php","line":162,"function":"runWithRequest","class":"think\\Http","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/public\/index.php","line":21,"function":"run","class":"think\\Http","type":"->"}],"source":{"first":25,"source":["     * @param  string $content 缓存的内容\n","     * @return void\n","     *\/\n","    public function write(string $cacheFile, string $content): void\n","    {\n","        \/\/ 检测模板目录\n","        $dir = dirname($cacheFile);\n","\n","        if (!is_dir($dir)) {\n","            mkdir($dir, 0755, true);\n","        }\n","\n","        \/\/ 生成模板缓存文件\n","        if (false === file_put_contents($cacheFile, $content)) {\n","            throw new Exception('cache write error:' . $cacheFile, 11602);\n","        }\n","    }\n","\n","    \/**\n"]}}}