attributes = post_params(); $form->store_id = get_store_id(); return $this->asJson($form->save()); } /** * 列表 */ public function actionList() { $form = new GoodsForm(); $form->attributes = get_params(); $form->store_id = get_store_id(); return $this->asJson($form->getList()); } /** * 删除 */ public function actionDel() { $form = new GoodsForm(); $form->attributes = post_params(); $form->store_id = get_store_id(); return $this->asJson($form->del()); } }