...
|
...
|
@@ -21,9 +21,9 @@ class IdeaComment extends Model |
|
|
// }
|
|
|
|
|
|
public function getCommentNumberAttr($val,$data){
|
|
|
$sum= $this->where("pid",$data['id'])->sum("comment_number");
|
|
|
// $sum= $this->where("pid",$data['id'])->sum("comment_number");
|
|
|
$count= $this->where("pid",$data['id'])->count();
|
|
|
return $sum+$count;
|
|
|
return $count;
|
|
|
}
|
|
|
|
|
|
public function getImagesTextAttr($value,$data)
|
...
|
...
|
|