Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
3cdab7e4
authored
2018-03-22 21:20:56 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
5327bd0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
application/hooks/CheckLogin.php
application/hooks/CheckLogin.php
View file @
3cdab7e
...
...
@@ -32,6 +32,10 @@ class CheckLogin
$session
->
repayments
=
$this
->
getRepayment
();
}
if
(
!
$session
->
repaymentPlans
)
{
$session
->
repaymentPlans
=
$this
->
getRepaymentPlans
();
}
/*if (preg_match("/admin|base/i", uri_string())) {
...
...
@@ -113,4 +117,15 @@ class CheckLogin
}
}
private
function
getRepaymentPlans
(){
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'enum/repaymentPlan/status'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
}
catch
(
Exception
$e
)
{
return
array
();
}
}
}
\ No newline at end of file
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment