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

vendorovertruewechatsrcFoundationApplication.php

registerBase 方法 在初始化属性时

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