Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
fenzhan_zsb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esf
fenzhan_zsb
Commits
f93dd5c6
Commit
f93dd5c6
authored
Feb 21, 2021
by
esf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
21eda510
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
zsb_api_model.php
new_admincp/applications/models/zsb_api_model.php
+4
-1
No files found.
new_admincp/applications/models/zsb_api_model.php
View file @
f93dd5c6
...
...
@@ -144,6 +144,9 @@ class zsb_api_model extends MY_Model{
$uid
=
$this
->
user_arr
[
'uid'
];
$key
=
$this
->
token
.
'_'
.
$uid
;
if
(
$_COOKIE
[
'ZKG'
]){
$this
->
mc
->
delete
(
$key
);
}
$token
=
$this
->
mc
->
get
(
$key
);
if
(
$token
){
return
$token
;
...
...
@@ -161,7 +164,7 @@ class zsb_api_model extends MY_Model{
return
array
(
'result'
=>
0
,
'msg'
=>
$msg
);
}
$token
=
$data
[
'data'
][
'token'
];
$this
->
mc
->
set
(
$key
,
$token
,
12
*
3
600
);
$this
->
mc
->
set
(
$key
,
$token
,
600
);
return
$token
;
}
...
...
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