overtrue/wechat 包 由 sys_get_temp_dir 引发的 the directory "c:\Windows" is not writable


vendor\overtrue\wechat\src\Foundation\Application.php

registerBase 方法 在初始化属性时

        $this['cache'] = function () {
//            return new FilesystemCache(sys_get_temp_dir());  // win 下获取的是 c:\window 没有权限 位置太敏感 加权限什么的就算了吧
            return new FilesystemCache(APP_PATH.'runtime/cache/'); // 用的是thinkphp默认缓存目录
        };


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM