Explorar o código

修改,Mex成单

dongasai hai 6 meses
pai
achega
4b072d378b
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      app/Module/Mex/Logic/MexMatchLogic.php

+ 3 - 0
app/Module/Mex/Logic/MexMatchLogic.php

@@ -426,6 +426,9 @@ class MexMatchLogic
                 $sellOrders = MexOrder::where('item_id', $itemId)
                     ->where('order_type', OrderType::SELL)
                     ->where('status', OrderStatus::PENDING)
+                    ->where('price', '<',$priceConfig->min_price)
+                    ->orderBy('price', 'asc')
+                    ->orderBy('id', 'asc')
                     ->limit($batchSize)
                     ->get();