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
1fbcfa60
Commit
1fbcfa60
authored
Dec 24, 2019
by
zhangkuanguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
芜湖放心看
parent
4c855a84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
zsb_api_model.php
new_admincp/applications/models/zsb_api_model.php
+3
-2
No files found.
new_admincp/applications/models/zsb_api_model.php
View file @
1fbcfa60
...
...
@@ -76,7 +76,8 @@ class zsb_api_model extends MY_Model{
public
function
getToken
(){
$uid
=
$this
->
user_arr
[
'uid'
];
$token
=
$this
->
mc
->
get
(
$this
->
token
.
'_'
.
$uid
);
$key
=
$this
->
token
.
'_'
.
$uid
;
$token
=
$this
->
mc
->
get
(
$key
);
if
(
$token
){
return
$token
;
}
...
...
@@ -93,7 +94,7 @@ class zsb_api_model extends MY_Model{
return
array
(
'result'
=>
0
,
'msg'
=>
$msg
);
}
$token
=
$data
[
'data'
][
'token'
];
$this
->
mc
->
set
(
$
this
->
token
,
$token
,
12
*
3600
);
$this
->
mc
->
set
(
$
key
,
$token
,
12
*
3600
);
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