wesmiler 5 дней назад
Родитель
Сommit
76bd4fc243
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Models/PostModel.php

+ 1 - 1
app/Models/PostModel.php

@@ -104,6 +104,6 @@ class PostModel extends BaseModel
     public function isLike()
     {
         return $this->hasOne(PostRecordModel::class, 'source_id', 'id')
-            ->where(['type'=>2,'status'=>1,'mark'=>1]);
+            ->where(['type'=>2,'status'=>1,'mark'=>1])->select(['id','type','user_id','source_id']);
     }
 }