5e9a6c4e by wang

init

1 parent 4bb9db0d
...@@ -157,8 +157,9 @@ class Perm extends CI_Controller { ...@@ -157,8 +157,9 @@ class Perm extends CI_Controller {
157 { 157 {
158 // echo $this->config->item('apiBaseUrl') . 'system/menu/getAllMenu'; 158 // echo $this->config->item('apiBaseUrl') . 'system/menu/getAllMenu';
159 $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'));
160 var_dump($res);
160 $data = $res->data; 161 $data = $res->data;
161 // print_r($data); 162 var_dump($data);
162 $arr = array(); 163 $arr = array();
163 foreach ($data as $k => $v) { 164 foreach ($data as $k => $v) {
164 $item = array(); 165 $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!