diff --git a/app/Common/function.php b/app/Common/function.php index 09da0ba..0ba542d 100644 --- a/app/Common/function.php +++ b/app/Common/function.php @@ -56,9 +56,14 @@ function get_front_url($param='') else if($param['type'] == 'page') { //单页面 - $url .= '/'.$param['pagename'].'.html'; + $url .= '/page/'.$param['pagename']; } - + else if($param['type'] == 'search') + { + //tags页面 + $url .= '/s'.$param['searchid']; + } + return $url; } @@ -85,7 +90,12 @@ function get_wap_front_url(array $param) else if($param['type'] == 'page') { //单页面 - $url .= '/'.$param['pagename'].'.html'; + $url .= '/page/'.$param['pagename']; + } + else if($param['type'] == 'search') + { + //tags页面 + $url .= '/s'.$param['searchid']; } return $url; @@ -862,7 +872,7 @@ function object_to_array($object, $get=0) $res[$key] = (array)$value; } } - else + elseif($get==1) { $res = (array)$object; } diff --git a/resources/views/admin/searchword/index.blade.php b/resources/views/admin/searchword/index.blade.php index a9113da..1322b59 100644 --- a/resources/views/admin/searchword/index.blade.php +++ b/resources/views/admin/searchword/index.blade.php @@ -21,7 +21,7 @@