code: public function processMenuFlag($link, $menu_build = true)
      {
          // 外链
          if ($menu_build == false) {
              return md5($link);
          }
          
          // 测试连接
          $url_test = 'path/test/domain';
          $url_path = str_replace($url_test . '.html', '', Url::build($url_test, '', true, true));
          
          // 相对url
          $url = Url::build($link, '', true, true);
          $url_relative = str_replace([
              $url_path,
              '.html'
          ], '', $url);
          
          // Url标识
          $arr = explode('/', $url_relative);
          if (strpos($link, '@module') !== false) {
              $arr = array_slice($arr, 0, 4);
          } else {
              $arr = array_slice($arr, 0, 3);
          }
          return implode('/', $arr);
      }
docs: 菜单标识
  
  @param string $link
  @return string