Jelajahi Sumber

修改b端接口:选择页面

FengR 3 bulan lalu
induk
melakukan
5b9953116d
1 mengubah file dengan 5 tambahan dan 3 penghapusan
  1. 5 3
      app/JsonRpc/PublicRpcService.php

+ 5 - 3
app/JsonRpc/PublicRpcService.php

@@ -2115,11 +2115,13 @@ class PublicRpcService implements PublicRpcServiceInterface
         Db::beginTransaction();
         try{
             if (empty($website_template_info)) {
-                $result['template_info'] = WebsiteTemplateInfo::create([
+               $result['template_info'] = WebsiteTemplateInfo::insertGetId([
                     'website_id' => $data['website_id'],
                     'page_type' => $page_type,
-                    'user_id' => $data['user_id']
-                ])->id;
+                    'user_id' => $data['user_id'],
+                    'status' => 0,
+                    'action_id' => 1,
+                ]);
             } else {
                 if ($website_template_info['status'] == 2) {
                     Db::rollBack();