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默認緩存目錄 };