瀏覽代碼

会员升级

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();