admin/app/common/model/plus/release/Project.php
@@ -48,13 +48,21 @@
    {
        return $this->hasMany('app\\common\\model\\plus\\release\\Tag', 'tag_id', 'tag_id');
    }
    /**
     * 关联评论表
     */
    public function evaluate()
    {
        return $this->hasMany('app\\common\\model\\plus\\release\\Evaluate', 'project_id', 'project_id')->order(['id' => 'desc']);
    }
    /**
     * 获取详情
     */
    public static function detail($project_id)
    {
        return (new static())->with(['image'])->find($project_id);
        return (new static())->with(['image','evaluate','evaluate.user','category'])->find($project_id);
    }
    /**