16b72274 by yangjianbin

init

1 parent f6bb184a
...@@ -16,6 +16,9 @@ class CheckLogin ...@@ -16,6 +16,9 @@ class CheckLogin
16 if (!$session->products) { 16 if (!$session->products) {
17 $session->products = $this->getProduct(); 17 $session->products = $this->getProduct();
18 } 18 }
19 if (!$session->orderStatus) {
20 $session->orderStatus = $this->getOrderStatus();
21 }
19 22
20 /*if (preg_match("/admin|base/i", uri_string())) { 23 /*if (preg_match("/admin|base/i", uri_string())) {
21 if(!$this->CI->session->isadmin){ 24 if(!$this->CI->session->isadmin){
...@@ -39,4 +42,12 @@ class CheckLogin ...@@ -39,4 +42,12 @@ class CheckLogin
39 return $products; 42 return $products;
40 } 43 }
41 44
45 private function getOrderStatus()
46 {
47 $url = 'http://151.28ms.com:8088/order/orderStatus/';
48 $res = json_decode(file_get_contents($url));
49 $products = $res->data;
50 return $products;
51 }
52
42 } 53 }
...\ No newline at end of file ...\ 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!