cqp пре 3 недеља
родитељ
комит
ea9fe320b3
1 измењених фајлова са 1 додато и 4 уклоњено
  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);
                     }
 
-                    // 重要:如果业务 Service 返回失败,抛出异常以触发回滚
-                    if (!$status) {
-                        throw new \Exception("业务数据更新失败: " . $resMsg);
-                    }
+                    if (!$status) throw new \Exception("业务数据更新失败: " . $resMsg);
                 }elseif ($draft->opt_type == 2){
                     DB::table($w->document_type)->where('id', $w->document_id)->update($draft->content);
                 }