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')" }); };