From 393d74657c40ac6b31c044579d78fc664f67a951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8F=AC=E6=B3=A2?= <963087326@qq.com> Date: Tue, 18 Dec 2018 15:11:05 +0800 Subject: [PATCH] =?UTF-8?q?!2=20=E9=98=B2=E6=AD=A2TP5.1=E6=A1=86=E6=9E=B6?= =?UTF-8?q?=E9=BB=98=E8=AE=A4session=E6=8A=A5=E9=94=99=20Merge=20pull=20re?= =?UTF-8?q?quest=20!2=20from=20=E7=8C=AB=E9=93=83=E5=84=BF/feature/wangzha?= =?UTF-8?q?obo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 5 +++++ config/session.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index f24b3f3..3cb6cc7 100644 --- a/composer.json +++ b/composer.json @@ -30,6 +30,11 @@ "app\\": "application" } }, + "scripts": { + "post-update-cmd": [ + "@php -r \"is_dir('runtime'.DIRECTORY_SEPARATOR.'session') || mkdir('runtime'.DIRECTORY_SEPARATOR.'session',0755,true);\"" + ] + }, "extra": { "think-path": "thinkphp" }, diff --git a/config/session.php b/config/session.php index 5d2b932..cb1d7a5 100644 --- a/config/session.php +++ b/config/session.php @@ -24,5 +24,5 @@ return [ // 是否自动开启 SESSION 'auto_start' => true, - 'path'=>env('runtime_path').'sess', + 'path'=>env('runtime_path').'session', ]; -- Gitee