Browse Source

修改,Mex成单

dongasai 6 months ago
parent
commit
2614820863
1 changed files with 2 additions and 1 deletions
  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)