优化协议获取

master
chenzhi 3 years ago
parent 23357b5330
commit 685a5f60fb

@ -379,10 +379,10 @@ class ArticleController extends HomeController {
private function getDocument($title)
{
$category=D('category')->where(array('name'=>'agreement'))->find();
$docu=D('document')->where(array('category_id'=>$category['id'],'status'=>1,'title'=>"'%{$title}'"))->find();
$docu=D('document')->where(array('category_id'=>$category['id'],'status'=>1,'title'=>['like',"%{$title}"]))->find();
$document_article=D('document_article')->where(array('id'=>$docu['id']))->find();
$this->assign('article',$document_article['content']);
$this->display();
$this->display('agreement');
}
protected function list_data($model){

Loading…
Cancel
Save