/** * 修改热销状态 * @param int $brand_id * @param int $status */ public function actionHot($brand_id, $status = 1) { if (!$this->is_access('brand/update')) { exit; } $model = new Brand(); if ($model->setHot($brand_id, $status)) { echo '1'; } else { echo '0'; } }