Browse Source

修改接口:保存模板

FengR 2 months ago
parent
commit
2eca44d1f2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/JsonRpc/PublicRpcService.php

+ 1 - 1
app/JsonRpc/PublicRpcService.php

@@ -2412,7 +2412,7 @@ class PublicRpcService implements PublicRpcServiceInterface
                 Db::rollback();
                 return Result::error('保存失败!');
             } else {
-                $tempalte_info = WebsiteTemplateInfo::where('website_id', $data['website_id'])->update(['status' => 1]);
+                $tempalte_info = WebsiteTemplateInfo::where('website_id', $data['website_id'])->update(['status' => 1,'template_id'=>$data['template_id']]);
                 if (empty($tempalte_info)) {
                     Db::rollback();
                     return Result::error('网站搭建状态保存失败!');