正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -21,9 +21,9 @@ class IdeaComment extends Model | @@ -21,9 +21,9 @@ class IdeaComment extends Model | ||
21 | // } | 21 | // } |
22 | 22 | ||
23 | public function getCommentNumberAttr($val,$data){ | 23 | public function getCommentNumberAttr($val,$data){ |
24 | - $sum= $this->where("pid",$data['id'])->sum("comment_number"); | 24 | +// $sum= $this->where("pid",$data['id'])->sum("comment_number"); |
25 | $count= $this->where("pid",$data['id'])->count(); | 25 | $count= $this->where("pid",$data['id'])->count(); |
26 | - return $sum+$count; | 26 | + return $count; |
27 | } | 27 | } |
28 | 28 | ||
29 | public function getImagesTextAttr($value,$data) | 29 | public function getImagesTextAttr($value,$data) |
-
请 注册 或 登录 后发表评论