'平台商户ID', 'name' => '方案名称', 'pay_price' => '支付金额', 'send_price' => '赠送金额', ]; } public function save() { if(!$this->validate()){ return $this->getModelError(); } if($this->model->isNewRecord){ $this->model->cx_mch_id = $this->cx_mch_id; } $this->model->attributes = $this->attributes; if(!$this->model->save()){ return $this->getModelError($this->model); } return $this->apiReturnSuccess('保存成功'); } }