作者 范庆奥
1 个管道 的构建 通过 耗费 1 秒

去除万能登录后台

@@ -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)