From 4b72704c776b9685ffda099ea621353176347eb9 Mon Sep 17 00:00:00 2001 From: molong Date: Wed, 13 Jul 2016 15:25:26 +0800 Subject: [PATCH] =?UTF-8?q?seo=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/model/SeoRule.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; }