Kirin 7 ماه پیش
والد
کامیت
a3f39ec207
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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();