5c81f949 by yangjianbin

init

1 parent 0223b292
...@@ -25,6 +25,10 @@ class CheckLogin ...@@ -25,6 +25,10 @@ class CheckLogin
25 if (!$session->customerManagers) { 25 if (!$session->customerManagers) {
26 $session->customerManagers = $this->getCustomerManagers(); 26 $session->customerManagers = $this->getCustomerManagers();
27 } 27 }
28 if (!$session->operatorManagers) {
29 $session->operatorManagers = $this->getOperatorManagers();
30 }
31
28 32
29 /*if (preg_match("/admin|base/i", uri_string())) { 33 /*if (preg_match("/admin|base/i", uri_string())) {
30 if(!$this->CI->session->isadmin){ 34 if(!$this->CI->session->isadmin){
...@@ -72,4 +76,12 @@ class CheckLogin ...@@ -72,4 +76,12 @@ class CheckLogin
72 return $products; 76 return $products;
73 } 77 }
74 78
79 private function getOperatorManagers()
80 {
81 $url = 'http://151.28ms.com:8088/system/user/getOperatorManager';
82 $res = json_decode(file_get_contents($url));
83 $products = $res->data;
84 return $products;
85 }
86
75 } 87 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -57,9 +57,9 @@ ...@@ -57,9 +57,9 @@
57 <span class="select-box"> 57 <span class="select-box">
58 <select class="select table_search" name="modifyUser" size="1" column="13"> 58 <select class="select table_search" name="modifyUser" size="1" column="13">
59 <option value="" selected>处理人</option> 59 <option value="" selected>处理人</option>
60 <option value="1">菜单一</option> 60 <?php foreach ($this->session->operatorManagers as $k=>$v):?>
61 <option value="2">菜单二</option> 61 <option value="<?=$k?>"><?=$v->name?></option>
62 <option value="3">菜单三</option> 62 <?php endforeach;?>
63 </select> 63 </select>
64 </span> 64 </span>
65 </div> 65 </div>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!