0e762955 by yangjianbin

init

1 parent b1422bc3
...@@ -47,7 +47,7 @@ class CheckLogin ...@@ -47,7 +47,7 @@ class CheckLogin
47 private function getProduct() 47 private function getProduct()
48 { 48 {
49 49
50 $url = $this->config->item('apiBaseUrl') . 'config/products/'; 50 $url = $this->CI->config->item('apiBaseUrl') . 'config/products/';
51 $res = json_decode(file_get_contents($url)); 51 $res = json_decode(file_get_contents($url));
52 $products = $res->data; 52 $products = $res->data;
53 return $products; 53 return $products;
...@@ -55,7 +55,7 @@ class CheckLogin ...@@ -55,7 +55,7 @@ class CheckLogin
55 55
56 private function getOrderStatus() 56 private function getOrderStatus()
57 { 57 {
58 $url = $this->config->item('apiBaseUrl') . 'order/orderStatus/'; 58 $url = $this->CI->config->item('apiBaseUrl') . 'order/orderStatus/';
59 $res = json_decode(file_get_contents($url)); 59 $res = json_decode(file_get_contents($url));
60 $products = $res->data; 60 $products = $res->data;
61 return $products; 61 return $products;
...@@ -64,7 +64,7 @@ class CheckLogin ...@@ -64,7 +64,7 @@ class CheckLogin
64 private function getDepartment() 64 private function getDepartment()
65 { 65 {
66 try { 66 try {
67 $url = $this->config->item('apiBaseUrl') . 'department/getTree'; 67 $url = $this->CI->config->item('apiBaseUrl') . 'department/getTree';
68 $res = json_decode(file_get_contents($url)); 68 $res = json_decode(file_get_contents($url));
69 $products = $res->data; 69 $products = $res->data;
70 return $products; 70 return $products;
...@@ -76,7 +76,7 @@ class CheckLogin ...@@ -76,7 +76,7 @@ class CheckLogin
76 private function getCustomerManagers() 76 private function getCustomerManagers()
77 { 77 {
78 try { 78 try {
79 $url = $this->config->item('apiBaseUrl') . 'system/user/getAllCustomerManager'; 79 $url = $this->CI->config->item('apiBaseUrl') . 'system/user/getAllCustomerManager';
80 $res = json_decode(file_get_contents($url)); 80 $res = json_decode(file_get_contents($url));
81 $products = $res->data; 81 $products = $res->data;
82 return $products; 82 return $products;
...@@ -88,7 +88,7 @@ class CheckLogin ...@@ -88,7 +88,7 @@ class CheckLogin
88 private function getOperatorManagers() 88 private function getOperatorManagers()
89 { 89 {
90 try { 90 try {
91 $url = $this->config->item('apiBaseUrl') . 'system/user/getOperatorManager'; 91 $url = $this->CI->config->item('apiBaseUrl') . 'system/user/getOperatorManager';
92 $res = json_decode(file_get_contents($url)); 92 $res = json_decode(file_get_contents($url));
93 $products = $res->data; 93 $products = $res->data;
94 return $products; 94 return $products;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!