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默认缓存目录
        };
posted @ 2017-09-17 16:30  djiz  阅读(2504)  评论(0编辑  收藏  举报