asJson([ 'code' => 0, 'data' => $conf, ]); } public function actionConfSave() { GivingGiftsForm::confSave(get_store_id(), input_params('conf')); return $this->asJson([ 'code' => 0, 'msg' => 'ok', ]); } public function actionConfGoodsSave() { $res = GivingGiftsForm::confGoodsSave(get_store_id(), input_params('goodsIds', []), input_params('del', 0)); return $this->asJson($res); } }