Commit b8ce0fd8 by 冷斌

fix bug

parent 5c86af7d
......@@ -337,9 +337,10 @@ class IndexAction extends Action
// 是否收藏
$paper['iscollect'] = D('ZyCollection', 'classroom')->isCollect($paper_id, 'exams_paper', intval($this->mid));
$limit = 0;
if (!$paper['is_buy']) {
$limit = 3;
$limit = 3;
if ($paper['is_buy'] || (int)$paper['price'] === 0) {
$limit = 0;
}
$this->assign('limit', $limit);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment