/** * 增加价格配置段 */ public function addAction() { if ($this->_request->isPost()) { $aPrice = $this->_checkData('add'); if (empty($aPrice)) { return null; } if (Model_Price::addData($aPrice) > 0) { return $this->showMsg('价格配置段增加成功!', true); } else { return $this->showMsg('价格配置段增加失败!', false); } } }