修改商品匹配的错误
This commit is contained in:
parent
e25473971a
commit
ba61566ae8
@ -2680,9 +2680,7 @@ class StoreOrderRepository extends BaseRepository
|
|||||||
$range = $this->getRangeNumber($money); //减少一般的区间
|
$range = $this->getRangeNumber($money); //减少一般的区间
|
||||||
$deal = $this->dealArr($list);
|
$deal = $this->dealArr($list);
|
||||||
//平均2个左右 0 1 2 阶梯往上查寻找
|
//平均2个左右 0 1 2 阶梯往上查寻找
|
||||||
$deal = [];
|
|
||||||
[$products, $minNum] = $this->getRange($deal, $range);
|
[$products, $minNum] = $this->getRange($deal, $range);
|
||||||
$list = [];
|
|
||||||
if (!empty($products)) {
|
if (!empty($products)) {
|
||||||
$list = $this->findNearestPriceProduct($products, $money, $minNum);
|
$list = $this->findNearestPriceProduct($products, $money, $minNum);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user