ソースを参照

修改接口:保存模板

FengR 3 ヶ月 前
コミット
2eca44d1f2
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/JsonRpc/PublicRpcService.php

+ 1 - 1
app/JsonRpc/PublicRpcService.php

@@ -2412,7 +2412,7 @@ class PublicRpcService implements PublicRpcServiceInterface
                 Db::rollback();
                 Db::rollback();
                 return Result::error('保存失败!');
                 return Result::error('保存失败!');
             } else {
             } 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)) {
                 if (empty($tempalte_info)) {
                     Db::rollback();
                     Db::rollback();
                     return Result::error('网站搭建状态保存失败!');
                     return Result::error('网站搭建状态保存失败!');