diff --git a/internal/api/public/livestream_public.go b/internal/api/public/livestream_public.go index 218ce3c..5395419 100755 --- a/internal/api/public/livestream_public.go +++ b/internal/api/public/livestream_public.go @@ -408,8 +408,8 @@ func (h *handler) GetLivestreamPendingOrders() core.HandlerFunc { var pendingOrders []model.DouyinOrders db := h.repo.GetDbR().WithContext(ctx.RequestContext()) - err = db.Where("order_status = 2 AND reward_granted < product_count AND douyin_product_id = ?", - activity.DouyinProductID). + err = db.Where("order_status IN ? AND reward_granted < product_count AND douyin_product_id = ?", + []int{2, 3}, activity.DouyinProductID). Find(&pendingOrders).Error if err != nil {