wesmiler hai 4 días
pai
achega
b20662c37c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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');