|
@@ -1185,8 +1185,9 @@ 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']),'updated_at'=>date("Y-m-d H:i:s",time())]);
|
|
|
+
|
|
|
if($result){
|
|
|
return Result::success($result);
|
|
|
}else{
|