fix: 修复字典bug、缓存默认使用file

This commit is contained in:
Ying
2022-11-29 11:42:55 +08:00
parent f19f236e9a
commit 1c0c886937
8 changed files with 126 additions and 108 deletions

View File

@@ -392,7 +392,7 @@ class Index extends AdminController
$parse['CACHE_DRIVER'] = $post['cache_type'];
$parse['CACHE_HOSTNAME'] = $post['cache_host'];
$parse['CACHE_HOSTPORT'] = $post['cache_port'];
$parse['CACHE_SELECT'] = min($post['cache_select'], 1);
$parse['CACHE_SELECT'] = $post['cache_select'];
$parse['CACHE_USERNAME'] = $post['cache_user'];
$parse['CACHE_PASSWORD'] = $post['cache_pass'];
write_file($env, parse_array_ini($parse));