3cdab7e4 by yangjianbin

init

1 parent 5327bd0a
......@@ -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
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!