attributes = get_params(); $form->store_id = get_store_id(); return $this->asJson($form->settingIndex()); } //修改 public function actionEdit() { $form = new SettingForm(); $form->attributes = post_params(); $form->store_id = get_store_id(); return $this->asJson($form->settingEdit()); } }