|
@@ -27,13 +27,14 @@ class TemplateUpdater
|
|
|
|
|
|
// 使用默认值的函数封装,避免重复逻辑
|
|
|
$template_dist_id = $dist->id ?? trim(config('liquid.template_dist_id'));
|
|
|
- $template_name = $dist->appearance->file_name ?? trim(config('liquid.template_name'));
|
|
|
+ $template_name = $dist->appearance->folder ?? trim(config('liquid.template_name'));
|
|
|
|
|
|
if (self::$baseTemplatePath === null) {
|
|
|
self::$baseTemplatePath = rtrim(config('liquid.template_path'), '/') . '/' .
|
|
|
trim($template_dist_id). '/' .
|
|
|
ltrim($template_name, '/');
|
|
|
}
|
|
|
+ echo $template_name;exit;
|
|
|
|
|
|
// 查询 dist_appearance_publish_list 表的记录
|
|
|
$publishList = DistAppearancePublishList::where('dist_id', $dist->id)
|