ソースを参照

修改接口:随机模板

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

+ 2 - 1
app/JsonRpc/PublicRpcService.php

@@ -4284,10 +4284,11 @@ class PublicRpcService implements PublicRpcServiceInterface
             // $page['template'][$key][$sector_key]['componentData'] = $result[$sectorId];
         }
         // return $canvas_data;
-        return [
+        $datas['component'] = [
             'template_data' => $template_data,
             'canvas_data' => $canvas_data,
         ];
+        return $datas;
         
         // return [
         //     'all_sector'=> array_column($sectors,'sector_name'),