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