cqp 5 days ago
parent
commit
c24dd83ceb
1 changed files with 7 additions and 1 deletions
  1. 7 1
      app/Service/WorkFlowService.php

+ 7 - 1
app/Service/WorkFlowService.php

@@ -431,7 +431,13 @@ class WorkFlowService extends Service
             ->where('document_id', $data['document_id'])
             ->latest()
             ->first();
-        $return['after'] = $draft ?? [];
+        $content = $draft->content ?? [];
+        $opt_type = $draft->opt_type ?? 0;
+        $after = [
+            'details' => $content,
+            'type' => $opt_type,
+        ];
+        $return['after'] = $after;
 
         $config = [
             'item' => "itemDetail",