eee118fb by wang

init

1 parent 5e9a6c4e
......@@ -158,10 +158,10 @@ class Perm extends CI_Controller {
// echo $this->config->item('apiBaseUrl') . 'system/menu/getAllMenu';
$res = json_decode(file_get_contents($this->config->item('apiBaseUrl') . 'system/menu/getAllMenu'));
var_dump($res);
$data = $res->data;
var_dump($data);
// $data = $res->data;
// var_dump($data);
$arr = array();
foreach ($data as $k => $v) {
foreach ($res as $k => $v) {
$item = array();
$item['id'] = $v->id;
$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!