16b72274 by yangjianbin

init

1 parent f6bb184a
......@@ -16,6 +16,9 @@ class CheckLogin
if (!$session->products) {
$session->products = $this->getProduct();
}
if (!$session->orderStatus) {
$session->orderStatus = $this->getOrderStatus();
}
/*if (preg_match("/admin|base/i", uri_string())) {
if(!$this->CI->session->isadmin){
......@@ -39,4 +42,12 @@ class CheckLogin
return $products;
}
private function getOrderStatus()
{
$url = 'http://151.28ms.com:8088/order/orderStatus/';
$res = json_decode(file_get_contents($url));
$products = $res->data;
return $products;
}
}
\ 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!