修改图文

This commit is contained in:
Anyon 2020-01-06 16:09:22 +08:00
parent d025fb6f78
commit 77feb27dc1
2 changed files with 7 additions and 3 deletions

View File

@ -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']);
}
}
/**

View File

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