数据不对

This commit is contained in:
codeliu 2024-03-23 11:28:25 +08:00
parent 428ee0f429
commit 953210ea9f

View File

@ -2698,11 +2698,13 @@ class StoreOrderRepository extends BaseRepository
if (!empty($products)) {
$list = $this->findNearestPriceProduct($products, $money, $minNum);
}
$count = count($list);//计算数量的
if(empty($list) && $baseList){
$list = $this->findProductByPrice($money,$baseList);
$count = count($list);//计算数量的
}
$count = count($list);//计算数量的
}
return [
'count' => $count,