|
@@ -13,11 +13,9 @@ class UserComment extends Model{
|
|
|
}
|
|
|
|
|
|
public function getInfo($user, $type, $page = 0){
|
|
|
- $this->db()
|
|
|
- ->alias("c")
|
|
|
- ->field("u.short s, c.inputtime t, c.content c")
|
|
|
- ->where(['c.user_id'=>$user, "c.type"=>$type])
|
|
|
- ->join("gd_user u", "c.comment_id = u.id", "left")
|
|
|
+ return $this->db()
|
|
|
+ ->field("comment_id s, inputtime t, content c")
|
|
|
+ ->where(['user_id'=>$user, "type"=>$type])
|
|
|
->page($page, config('paginate.list_rows'))
|
|
|
->order("inputtime DESC")
|
|
|
->select();
|