UserCenterLeftMenuHandle($params); break; default : $ret = ''; } return $ret; } } /** * 用户中心左侧菜单处理 * @author Devil * @blog http://gong.gg/ * @version 1.0.0 * @date 2019-04-11 * @desc description * @param array $params [description] */ public function UserCenterLeftMenuHandle($params = []) { $menu = [[ 'name' => '宠物管理', 'is_show' => 1, 'icon' => 'am-icon-drupal', 'item' => [ [ 'name' => '我的宠物', 'url' => PluginsHomeUrl('petscms', 'pets', 'index'), 'contains' => ['petsindex', 'petssaveinfo', 'petshelp'], 'is_show' => 1, 'icon' => 'am-icon-github-alt', ], ] ]]; array_splice($params['data'], 2, 0, $menu); } } ?>