<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                #### Url ~~~ /** * URL生成 支持路由反射 * @param string $url 路由地址 * @param string|array $vars 參數(支持數組和字符串)a=val&b=val2... ['a'=>'val1', 'b'=>'val2'] * @param string|bool $suffix 偽靜態后綴,默認為true表示獲取配置值 * @param boolean|string $domain 是否顯示域名 或者直接傳入域名 * @return string */ Url::build($url = '', $vars = '', $suffix = true, $domain = false); // 直接解析URL地址 self::parseUrl($url, &$domain); { $request = Request::instance(); if (0 === strpos($url, '/')) { // 直接作為路由地址解析 $url = substr($url, 1); } elseif (false !== strpos($url, '\\')) { // 解析到類 $url = ltrim(str_replace('\\', '/', $url), '/'); } elseif (0 === strpos($url, '@')) { // 解析到控制器 $url = substr($url, 1); } else { // 解析到 模塊/控制器/操作 $module = $request->module(); $domains = Route::rules('domain'); if (true === $domain && 2 == substr_count($url, '/')) { $current = $request->host(); $match = []; $pos = []; foreach ($domains as $key => $item) { if (isset($item['[bind]']) && 0 === strpos($url, $item['[bind]'][0])) { $pos[$key] = strlen($item['[bind]'][0]) + 1; $match[] = $key; $module = ''; } } if ($match) { $domain = current($match); foreach ($match as $item) { if (0 === strpos($current, $item)) { $domain = $item; } } self::$bindCheck = true; $url = substr($url, $pos[$domain]); } } elseif ($domain) { if (isset($domains[$domain]['[bind]'][0])) { $bindModule = $domains[$domain]['[bind]'][0]; if ($bindModule && !in_array($bindModule[0], ['\\', '@'])) { $module = ''; } } } $module = $module ? $module . '/' : ''; $controller = Loader::parseName($request->controller()); if ('' == $url) { // 空字符串輸出當前的 模塊/控制器/操作 $url = $module . $controller . '/' . $request->action(); } else { $path = explode('/', $url); $action = Config::get('url_convert') ? strtolower(array_pop($path)) : array_pop($path); $controller = empty($path) ? $controller : (Config::get('url_convert') ? Loader::parseName(array_pop($path)) : array_pop($path)); $module = empty($path) ? $module : array_pop($path) . '/'; $url = $module . $controller . '/' . $action; } } return $url; } // 檢測域名 self::parseDomain(&$url, $domain); // 解析URL后綴 self::parseSuffix($suffix); // 匹配路由地址 Url::function getRuleUrl($rule, &$vars = []); // 指定當前生成URL地址的root Url::function root($root); ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看