dongasai 6 mesi fa
parent
commit
2614820863
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      app/Module/Mex/Logic/MexMatchLogic.php

+ 2 - 1
app/Module/Mex/Logic/MexMatchLogic.php

@@ -426,7 +426,8 @@ class MexMatchLogic
                 $sellOrders = MexOrder::where('item_id', $itemId)
                     ->where('order_type', OrderType::SELL)
                     ->where('status', OrderStatus::PENDING)
-                    ->where('price', '<=',$priceConfig->min_price)
+                    ->where('price', '<=',$priceConfig->min_price) // 价格 <= 最低价格
+                    ->where('quantity', '<=', $priceConfig->protection_threshold) // 数量保护:数量≤保护阈值
                     ->orderBy('price', 'asc')
                     ->orderBy('id', 'asc')
                     ->limit($batchSize)