wesmiler hace 5 días
padre
commit
76bd4fc243
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Models/PostModel.php

+ 1 - 1
app/Models/PostModel.php

@@ -104,6 +104,6 @@ class PostModel extends BaseModel
     public function isLike()
     public function isLike()
     {
     {
         return $this->hasOne(PostRecordModel::class, 'source_id', 'id')
         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']);
     }
     }
 }
 }