|
@@ -91,10 +91,11 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
'title' => $data['title'] ?? '',
|
|
|
'keywords' => $data['keywords'] ?? '',
|
|
|
'description' => $data['description'] ?? '',
|
|
|
- 'status' => $data['status'] ?? 0,
|
|
|
+ 'status' => $data['status'] ?? 1,
|
|
|
'website_column_arr_id' => $data['website_column_arr_id'],
|
|
|
// 'city_arr_id'=>$data['city_arr_id']??[0],
|
|
|
'template_id' => $data['template_id'] ?? 0,
|
|
|
+ 'suffix' => $data['suffix'] ??"",
|
|
|
];
|
|
|
$result = Website::insertGetId($insertData);
|
|
|
if (empty($result)) {
|
|
@@ -120,11 +121,13 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
'title' => $data['title'] ?? '',
|
|
|
'keywords' => $data['keywords'] ?? '',
|
|
|
'description' => $data['description'] ?? '',
|
|
|
- 'status' => $data['status'] ?? 0,
|
|
|
+// 'status' => $data['status'] ?? 0,
|
|
|
'website_column_arr_id' => $data['website_column_arr_id'],
|
|
|
// 'city_arr_id'=>$data['city_arr_id']??[0],
|
|
|
'template_id' => $data['template_id'] ?? 0,
|
|
|
+ 'suffix' => $data['suffix'] ??"",
|
|
|
];
|
|
|
+ var_dump("=========:",$insertData);
|
|
|
$result = Website::where('id', $id)->update($insertData);
|
|
|
var_dump("更新站点", $result);
|
|
|
if (empty($result)) {
|
|
@@ -1315,7 +1318,7 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
}
|
|
|
$website_foot = WebsiteTemplateInfo::where('website_id', $data['website_id'])->where('status', 2)->first();
|
|
|
$website_head = Website::where('id', $data['website_id'])
|
|
|
- ->select('id', 'website_name', 'logo', 'title', 'keywords', 'description')->first();
|
|
|
+ ->select('id', 'website_name', 'logo', 'title', 'keywords', 'description','suffix')->first();
|
|
|
if (empty($website_foot)) {
|
|
|
return Result::error("暂无底部基础信息", 0);
|
|
|
}
|
|
@@ -1495,6 +1498,8 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
return Result::error("导航id错误", 0);
|
|
|
}
|
|
|
$result = Category::where('id', $data['catid'])->first();
|
|
|
+ $result['website_name'] = $website['website_name']??'';
|
|
|
+ $result['suffix'] = $website['suffix']??'';
|
|
|
}
|
|
|
if (empty($result)) {
|
|
|
return Result::error("暂无导航", 0);
|