diff --git a/convention.php b/convention.php index 6683bee1..74ff049c 100644 --- a/convention.php +++ b/convention.php @@ -135,6 +135,7 @@ return [ // | 数据库设置 // +---------------------------------------------------------------------- + 'db_like_fields' => '', 'database' => [ // 数据库类型 'type' => 'mysql', diff --git a/library/think/url.php b/library/think/url.php index cdd00f38..543d83e9 100644 --- a/library/think/url.php +++ b/library/think/url.php @@ -105,8 +105,9 @@ class Url // 解析URL和参数 域名 protected static function parseUrl($url, $vars, $domain) { - $info = parse_url($url); - $url = !empty($info['path']) ? $info['path'] : ACTION_NAME; + $info = parse_url($url); + $url = !empty($info['path']) ? $info['path'] : ACTION_NAME; + $anchor = ''; if (isset($info['fragment'])) { // 解析锚点 $anchor = $info['fragment'];