Browse Source

会员升级

Kirin 7 tháng trước cách đây
mục cha
commit
a3f39ec207
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/dao/product/product/StoreProductDao.php

+ 1 - 1
app/dao/product/product/StoreProductDao.php

@@ -246,7 +246,7 @@ class StoreProductDao extends BaseDao
             }
         })->when(isset($where['award']) && $where['award'] >= 0, function ($query) use ($where) {
             if ($where['award']) $query->where('award_price', '>', 0);
-            if ($where['award']) $query->where('award_price', 0);
+            if (!$where['award']) $query->where('award_price', 0);
         })->when(!$page && $limit, function ($query) use ($limit) {
             $query->limit($limit);
         })->field($field)->select()->toArray();