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