0e762955 by yangjianbin

init

1 parent b1422bc3
......@@ -47,7 +47,7 @@ class CheckLogin
private function getProduct()
{
$url = $this->config->item('apiBaseUrl') . 'config/products/';
$url = $this->CI->config->item('apiBaseUrl') . 'config/products/';
$res = json_decode(file_get_contents($url));
$products = $res->data;
return $products;
......@@ -55,7 +55,7 @@ class CheckLogin
private function getOrderStatus()
{
$url = $this->config->item('apiBaseUrl') . 'order/orderStatus/';
$url = $this->CI->config->item('apiBaseUrl') . 'order/orderStatus/';
$res = json_decode(file_get_contents($url));
$products = $res->data;
return $products;
......@@ -64,7 +64,7 @@ class CheckLogin
private function getDepartment()
{
try {
$url = $this->config->item('apiBaseUrl') . 'department/getTree';
$url = $this->CI->config->item('apiBaseUrl') . 'department/getTree';
$res = json_decode(file_get_contents($url));
$products = $res->data;
return $products;
......@@ -76,7 +76,7 @@ class CheckLogin
private function getCustomerManagers()
{
try {
$url = $this->config->item('apiBaseUrl') . 'system/user/getAllCustomerManager';
$url = $this->CI->config->item('apiBaseUrl') . 'system/user/getAllCustomerManager';
$res = json_decode(file_get_contents($url));
$products = $res->data;
return $products;
......@@ -88,7 +88,7 @@ class CheckLogin
private function getOperatorManagers()
{
try {
$url = $this->config->item('apiBaseUrl') . 'system/user/getOperatorManager';
$url = $this->CI->config->item('apiBaseUrl') . 'system/user/getOperatorManager';
$res = json_decode(file_get_contents($url));
$products = $res->data;
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!