cqp 4 주 전
부모
커밋
2c28cd2109
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      app/Service/WorkFlowService.php

+ 3 - 1
app/Service/WorkFlowService.php

@@ -134,6 +134,8 @@ class WorkFlowService extends Service
             return [false, '审批流配置缺少连线(edges)信息'];
         }
 
+        $data['content'] = $content;
+
         // 4. 业务唯一性校验
         $query = WorkFlowTemplates::where('code', $data['code'])
             ->where('top_depart_id', $user['top_depart_id'])
@@ -191,7 +193,7 @@ class WorkFlowService extends Service
             'upd_time'      => time(),
             'top_depart_id' => $user['top_depart_id']
         ]);
-
+dd($template->content);
         // 获取前端原始 JSON 中的节点和连线 [cite: 1]
         $nodes = $template->content['nodes'];
         $edges = $template->content['edges'];