FengR 2 месяцев назад
Родитель
Сommit
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();
                 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('网站搭建状态保存失败!');