|
|
@@ -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);
|
|
|
}
|