c67e8d11 by wang

init

1 parent f2087fe7
...@@ -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;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!