request->isPost()) { $this->token(); $row = $this->request->post('row/a', []); if (empty($row)) { $this->error(__('Parameter %s can not be empty', 'row')); } try { if (isset($row['fc_post_mode']) || isset($row['fc_fee_viewMode'])) { FcConfig::savePublish($row); } if (isset($row['fc_dist_level']) || isset($row['fc_dist_level1Rate'])) { FcConfig::saveDistribution($row); } } catch (Exception $e) { $this->error($e->getMessage()); } $this->success('运营配置保存成功'); } $row = array_merge( FcConfig::getPublishConfig(), FcConfig::getDistributionConfig() ); $this->view->assign('row', $row); $this->view->assign('title', '运营配置'); return $this->view->fetch(); } }