init
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -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(); | ... | ... |
-
Please register or sign in to post a comment