code: public function saveMenu($data, $map)
      {
          $data['menu_flag'] = $this->processMenuFlag($data['menu_url'], $data['menu_build']);
          return $this->model->saveById($data, $map);
      }
docs: 保存菜单
  
  @param array $data
  @param array $map
  @return number