瀏覽代碼

Merge branch 'develop'

master
Fab 3 年之前
父節點
當前提交
227187a24a
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      ShopBundle/Repository/ReductionCartRepository.php

+ 3
- 1
ShopBundle/Repository/ReductionCartRepository.php 查看文件

@@ -68,9 +68,11 @@ class ReductionCartRepository extends BaseRepository implements DefaultRepositor

$reductionCartsArray = [] ;
foreach($reductionCarts as $reductionCart) {
dump($reductionCart);
if($this->orderUtils->isReductionCartMatchWithUser($reductionCart, $user)
&& $this->orderUtils->isReductionCartMatchWithGroupUser($reductionCart, $user)
&& $this->orderUtils->countReductionCartAvailableForUser($reductionCart, $user)) {
&& $this->orderUtils->countReductionCartAvailableForUser($reductionCart, $user)
&& ($reductionCart->getUsers()->count() > 0 || $reductionCart->getGroupUsers()->count() > 0)) {

$reductionCartsArray[] = $reductionCart ;
}

Loading…
取消
儲存