Commit 356c8e65 by 王兴勇

修正错误变量

parent c2467340
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* @author Lazy 2017-10-26 * @author Lazy 2017-10-26
*/ */
function faker_login($configs) { function faker_login($configs) {
if (empty($configss)) if (empty($configs))
return false; return false;
is_array($configs) || $configs = explode(',', $configs); is_array($configs) || $configs = explode(',', $configs);
foreach ($configs as $config) { foreach ($configs as $config) {
...@@ -35,7 +35,7 @@ function faker_admin($file) { ...@@ -35,7 +35,7 @@ function faker_admin($file) {
$cookies = cookie('sys_key'); $cookies = cookie('sys_key');
if (empty($cookies)) { if (empty($cookies)) {
$config = require format_common_path($file); $config = require format_common_path($file);
setNcCookie('sys_key', $config, 3600, '', null); setNcCookie('sys_key', $config, 3600, '/', '/');
} }
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment