cqp 3 săptămâni în urmă
părinte
comite
ea9fe320b3
1 a modificat fișierele cu 1 adăugiri și 4 ștergeri
  1. 1 4
      app/Service/WorkFlowService.php

+ 1 - 4
app/Service/WorkFlowService.php

@@ -482,10 +482,7 @@ class WorkFlowService extends Service
                         list($status, $resMsg) = (new ItemService())->itemNodeMissionEditSave($draft->content, $draft->opt_user);
                         list($status, $resMsg) = (new ItemService())->itemNodeMissionEditSave($draft->content, $draft->opt_user);
                     }
                     }
 
 
-                    // 重要:如果业务 Service 返回失败,抛出异常以触发回滚
-                    if (!$status) {
-                        throw new \Exception("业务数据更新失败: " . $resMsg);
-                    }
+                    if (!$status) throw new \Exception("业务数据更新失败: " . $resMsg);
                 }elseif ($draft->opt_type == 2){
                 }elseif ($draft->opt_type == 2){
                     DB::table($w->document_type)->where('id', $w->document_id)->update($draft->content);
                     DB::table($w->document_type)->where('id', $w->document_id)->update($draft->content);
                 }
                 }