f45f0c54 by wang

init

1 parent 33436272
...@@ -155,9 +155,10 @@ class Perm extends CI_Controller { ...@@ -155,9 +155,10 @@ class Perm extends CI_Controller {
155 155
156 public function menu() 156 public function menu()
157 { 157 {
158 echo $this->config->item('apiBaseUrl') . 'system/menu/getAllMenu';
158 $res = json_decode(file_get_contents($this->config->item('apiBaseUrl') . 'system/menu/getAllMenu')); 159 $res = json_decode(file_get_contents($this->config->item('apiBaseUrl') . 'system/menu/getAllMenu'));
159 $data = $res->data; 160 $data = $res->data;
160 print_r($data); 161 // print_r($data);
161 $arr = array(); 162 $arr = array();
162 foreach ($data as $k => $v) { 163 foreach ($data as $k => $v) {
163 $item = array(); 164 $item = array();
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!