init
Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -157,11 +157,11 @@ class Perm extends CI_Controller { | ... | @@ -157,11 +157,11 @@ 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 | // var_dump($res); |
| 161 | // $data = $res->data; | 161 | $data = $res->data; |
| 162 | // var_dump($data); | 162 | // var_dump($data); |
| 163 | $arr = array(); | 163 | $arr = array(); |
| 164 | foreach ($res as $k => $v) { | 164 | foreach ($data as $k => $v) { |
| 165 | $item = array(); | 165 | $item = array(); |
| 166 | $item['id'] = $v->id; | 166 | $item['id'] = $v->id; |
| 167 | $item['name'] = $v->name; | 167 | $item['name'] = $v->name; | ... | ... |
-
Please register or sign in to post a comment