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