Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
王兴勇
/
helper-config
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
356c8e65
authored
Nov 07, 2017
by
王兴勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正错误变量
parent
c2467340
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common.php
+2
-2
No files found.
common.php
View file @
356c8e65
...
@@ -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
(
$configs
s
))
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
,
'
/'
,
'/'
);
}
}
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment