Selaa lähdekoodia

修改,Mex成单

dongasai 6 kuukautta sitten
vanhempi
commit
4b072d378b
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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();