Kirin hai 7 meses
pai
achega
a3f39ec207
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();