mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改图文
This commit is contained in:
parent
d025fb6f78
commit
77feb27dc1
@ -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']);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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')"
|
||||
});
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user