From 77feb27dc1dc9afd233456f8d158fa939375769d Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 6 Jan 2020 16:09:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/wechat/controller/News.php | 8 ++++++-- app/wechat/view/news/form.html | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/wechat/controller/News.php b/app/wechat/controller/News.php index 997661599..99917a7d7 100644 --- a/app/wechat/controller/News.php +++ b/app/wechat/controller/News.php @@ -56,7 +56,9 @@ class News extends Controller */ protected function _index_page_filter(&$data) { - foreach ($data as &$vo) $vo = MediaService::instance()->news($vo['id']); + foreach ($data as &$vo) { + $vo = MediaService::instance()->news($vo['id']); + } } /** @@ -80,7 +82,9 @@ class News extends Controller */ protected function _select_page_filter(&$data) { - foreach ($data as &$vo) $vo = MediaService::instance()->news($vo['id']); + foreach ($data as &$vo) { + $vo = MediaService::instance()->news($vo['id']); + } } /** diff --git a/app/wechat/view/news/form.html b/app/wechat/view/news/form.html index 1ad3fbb86..604148f0d 100644 --- a/app/wechat/view/news/form.html +++ b/app/wechat/view/news/form.html @@ -173,7 +173,7 @@ author: '管理员', content: '文章内容', read_num: 0, - local_url: '___ROOT__/static/theme/img/image.png', + local_url: '__ROOT__/static/theme/img/image.png', style: "background-image:url('__ROOT__/static/theme/img/image.png')" }); };