第二次提交

This commit is contained in:
zufeng555
2019-03-01 17:32:10 +08:00
parent 26f08a2fc3
commit 4fc9126214
224 changed files with 66862 additions and 1338 deletions

View File

@@ -43,8 +43,19 @@ class Article extends Base {
$this->assign('article',$article);
}
return $this->fetch();
}
}
public function listdd(){
$article_id = I('article_id/d',1);
$article = Db::name('article')->where("article_id", $article_id)->find();
if($article){
$parent = Db::name('article_cat')->where("cat_id",$article['cat_id'])->find();
$this->assign('cat_name',$parent['cat_name']);
$this->assign('article',$article);
}
return $this->fetch();
}
/**
* 获取服务协议
* @return mixed