Browse Source

热门抢购

afa 10 months ago
parent
commit
2b0b2b00ee
1 changed files with 1 additions and 0 deletions
  1. 1 0
      application/admin/controller/product/Popular.php

+ 1 - 0
application/admin/controller/product/Popular.php

@@ -91,6 +91,7 @@ class Popular extends Backend
             }
             }
             if(time() >= strtotime($params['start_time'])) $params['status'] = $this->model::NORMAL;
             if(time() >= strtotime($params['start_time'])) $params['status'] = $this->model::NORMAL;
             if(time() >= strtotime($params['end_time'])) $params['status'] = $this->model::STOP;
             if(time() >= strtotime($params['end_time'])) $params['status'] = $this->model::STOP;
+            $params['num']   = 0;
             $params['stock'] = ProductArea::getProductStock($params['product_id']);
             $params['stock'] = ProductArea::getProductStock($params['product_id']);
             $result = $this->model->allowField(true)->save($params);
             $result = $this->model->allowField(true)->save($params);
             Db::commit();
             Db::commit();