瀏覽代碼

修改,Mex成单

dongasai 6 月之前
父節點
當前提交
4b072d378b
共有 1 個文件被更改,包括 3 次插入0 次删除
  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();