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