修复:合同信息配置信息获取时 初始化信息错误
This commit is contained in:
parent
3a9518a7e3
commit
529fd0252d
|
|
@ -107,13 +107,17 @@ class ContractRepository extends BaseRepository{
|
||||||
'10' => ['title' => '总部内勤','sign_task_subject' => '','sign_template_id' => ''],
|
'10' => ['title' => '总部内勤','sign_task_subject' => '','sign_template_id' => ''],
|
||||||
'11' => ['title' => '烟酒店代销商','sign_task_subject' => '','sign_template_id' => ''],
|
'11' => ['title' => '烟酒店代销商','sign_task_subject' => '','sign_template_id' => ''],
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach($templateList as $tempKey => $tempItem){
|
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;
|
return $config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Common: 获取授权信息
|
* Common: 获取授权信息
|
||||||
* Author: wu-hui
|
* Author: wu-hui
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue