isAjax()) { $period_type = input('period_type', 3); if (!in_array($period_type, $store_account_model->period_types)) { return error(-1, '参数错误'); } $data = ['period_type' => $period_type]; $res = $store_account_model->setStoreWithdrawConfig($this->site_id, $data); return $res; } $config_info = $store_account_model->getStoreWithdrawConfig($this->site_id); $this->assign('config_info', $config_info['data']); $this->forthMenu(); return $this->fetch("config/index"); } }