wesmiler 6 päivää sitten
vanhempi
commit
b20662c37c
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      app/Services/Api/OrderService.php

+ 1 - 0
app/Services/Api/OrderService.php

@@ -825,6 +825,7 @@ class OrderService extends BaseService
         }
 
         $data = $this->model->where(['user_id' => $userId, 'meal_id' => $goodsId, 'mark' => 1])
+            ->where('main_no', '')
             ->where('status', '<=', 5)
             ->where('refund_status', '<=', 0)
             ->count('id');