代码优化,去掉多余

This commit is contained in:
devil_gong
2018-11-14 14:34:32 +08:00
parent ba22640b28
commit 8af47aecb7
20 changed files with 191 additions and 330 deletions

View File

@ -2,6 +2,8 @@
namespace Home\Controller;
use Service\ResourcesService;
/**
* 自定义页面
* @author Devil
@ -42,7 +44,7 @@ class CustomViewController extends CommonController
$m->where(array('id'=>I('id')))->setInc('access_count');
// 静态资源地址处理
$data['content'] = ContentStaticReplace($data['content'], 'get');
$data['content'] = ResourcesService::ContentStaticReplace($data['content'], 'get');
$this->assign('is_header', $data['is_header']);
$this->assign('is_footer', $data['is_footer']);