0a697995 by yangjianbin

init

1 parent 26a710c6
...@@ -62,26 +62,38 @@ class CheckLogin ...@@ -62,26 +62,38 @@ class CheckLogin
62 62
63 private function getDepartment() 63 private function getDepartment()
64 { 64 {
65 try {
65 $url = 'http://151.28ms.com:8180/department/getTree'; 66 $url = 'http://151.28ms.com:8180/department/getTree';
66 $res = json_decode(file_get_contents($url)); 67 $res = json_decode(file_get_contents($url));
67 $products = $res->data; 68 $products = $res->data;
68 return $products; 69 return $products;
70 } catch (Exception $e) {
71 return array();
72 }
69 } 73 }
70 74
71 private function getCustomerManagers() 75 private function getCustomerManagers()
72 { 76 {
77 try {
73 $url = 'http://151.28ms.com:8180/system/user/getAllCustomerManager'; 78 $url = 'http://151.28ms.com:8180/system/user/getAllCustomerManager';
74 $res = json_decode(file_get_contents($url)); 79 $res = json_decode(file_get_contents($url));
75 $products = $res->data; 80 $products = $res->data;
76 return $products; 81 return $products;
82 } catch (Exception $e) {
83 return array();
84 }
77 } 85 }
78 86
79 private function getOperatorManagers() 87 private function getOperatorManagers()
80 { 88 {
89 try {
81 $url = 'http://151.28ms.com:8180/system/user/getOperatorManager'; 90 $url = 'http://151.28ms.com:8180/system/user/getOperatorManager';
82 $res = json_decode(file_get_contents($url)); 91 $res = json_decode(file_get_contents($url));
83 $products = $res->data; 92 $products = $res->data;
84 return $products; 93 return $products;
94 } catch (Exception $e) {
95 return array();
96 }
85 } 97 }
86 98
87 } 99 }
...\ 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!