修改商品匹配的错误

This commit is contained in:
luofei 2024-03-22 09:40:18 +08:00
parent e25473971a
commit ba61566ae8

View File

@ -2680,9 +2680,7 @@ class StoreOrderRepository extends BaseRepository
$range = $this->getRangeNumber($money); //减少一般的区间
$deal = $this->dealArr($list);
//平均2个左右 0 1 2 阶梯往上查寻找
$deal = [];
[$products, $minNum] = $this->getRange($deal, $range);
$list = [];
if (!empty($products)) {
$list = $this->findNearestPriceProduct($products, $money, $minNum);
}