소스 검색

会员升级

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