|
@@ -1185,7 +1185,7 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
*/
|
|
|
public function addWebsiteTemplate(array $data): array
|
|
|
{
|
|
|
- var_dump("接收参数:",$data['template_data']);
|
|
|
+// var_dump("接收参数:",$data['template_data']);
|
|
|
$result = WebsiteTemplate::updateOrInsert(['website_id'=>$data['website_id']],['template_data'=>json_encode($data['template_data'])]);
|
|
|
if($result){
|
|
|
return Result::success($result);
|
|
@@ -1205,7 +1205,6 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
"website_id" =>$data['website_id']
|
|
|
];
|
|
|
$result = WebsiteTemplate::where($wehre)->first();
|
|
|
-
|
|
|
if($result){
|
|
|
$templateData = json_decode($result['template_data'],true);
|
|
|
// var_dump("数据:",$templateData[1]);
|
|
@@ -1218,7 +1217,7 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获取数据
|
|
|
+ * 获取列表数据
|
|
|
* @return void
|
|
|
*/
|
|
|
public function getNewsList(array $data): array
|