首页 > Windows开发 > 详细

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

时间:2017-09-17 16:53:13      阅读:379      评论:0      收藏:0      [点我收藏+]

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默认缓存目录
        };

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

原文:http://www.cnblogs.com/djiz/p/7536091.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!