c67e8d11 by wang

init

1 parent f2087fe7
......@@ -157,11 +157,11 @@ 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($res);
$data = $res->data;
// var_dump($data);
$arr = array();
foreach ($res as $k => $v) {
foreach ($data 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!