From 529fd0252d1e151d90563b4738fe29fadab7e0fd Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Fri, 5 Jul 2024 14:47:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=90=88=E5=90=8C?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E9=85=8D=E7=BD=AE=E4=BF=A1=E6=81=AF=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=97=B6=20=20=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/repositories/common/ContractRepository.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/common/repositories/common/ContractRepository.php b/app/common/repositories/common/ContractRepository.php index 561d279..a7935fc 100644 --- a/app/common/repositories/common/ContractRepository.php +++ b/app/common/repositories/common/ContractRepository.php @@ -107,13 +107,17 @@ class ContractRepository extends BaseRepository{ '10' => ['title' => '总部内勤','sign_task_subject' => '','sign_template_id' => ''], '11' => ['title' => '烟酒店代销商','sign_task_subject' => '','sign_template_id' => ''], ]; + foreach($templateList as $tempKey => $tempItem){ - $config['template_list'][$tempKey] = (array)$config['template_list'][$tempKey] ?? $tempItem; + $currentInfo = $config['template_list'][$tempKey] ?? []; + if($currentInfo) $config['template_list'][$tempKey] = $currentInfo; + else $config['template_list'][$tempKey] = $tempItem; } return $config; } + /** * Common: 获取授权信息 * Author: wu-hui