success(compact('domestic', 'abroad')); } /** * 合同配置保存 */ public function saveContractSetting(Request $request) { if (!empty($request->post('domestic'))) { Redis::set(self::SETTING_DOMESTIC, $request->get('domestic')); } if (!empty($request->post('abroad'))) { Redis::set(self::SETTING_ABROAD, $request->get('abroad')); } return $this->success([]); } }