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