diff --git a/application/common/model/SeoRule.php b/application/common/model/SeoRule.php index 50a7c010..f2a92471 100644 --- a/application/common/model/SeoRule.php +++ b/application/common/model/SeoRule.php @@ -57,7 +57,14 @@ class SeoRule extends Base{ public function getMetaOfCurrentPage($seo){ $request = \think\Request::instance(); - $result = $this->getMeta($request->module(), $request->controller(), $request->action(), $seo); + foreach ($seo as $key => $value) { + if (is_array($value)) { + $seo_to_str[$key] = implode(',', $value); + }else{ + $seo_to_str[$key] = $value; + } + } + $result = $this->getMeta($request->module(), $request->controller(), $request->action(), $seo_to_str); return $result; }