select(['id', 'order_id', 'refund_id','is_refund', 'goods_option_title', 'goods_id', 'goods_price', 'total', 'price', 'title', 'thumb', 'comment_status']); } public function sale() { return $this->hasOne(Sale::class, 'goods_id', 'goods_id'); } public static function getMyCommentList($status) { $list = self::select()->Where('comment_status', $status)->orderBy('id', 'desc')->get(); return $list; } }