diff --git a/app/common.php b/app/common.php index 0ab8e89d6..9ba0fee2d 100755 --- a/app/common.php +++ b/app/common.php @@ -360,7 +360,7 @@ function daysBetweenDates($start_date,$end_date): bool|int return $interval->days; } -function addApprove($title,$content_id,$content_model,$content_logic,$patah,$flow_type_id,$flow_id,$create_user_id){ +function addApprove($title,$content_id,$content_model,$content_logic,$path,$flow_type_id,$flow_id,$create_user_id){ $createUser = Admin::field('name,dept_id')->where('id',$create_user_id)->findOrEmpty(); //获取审批流程信息 $flowData = Flow::where('id',$flow_id)->findOrEmpty(); @@ -372,7 +372,7 @@ function addApprove($title,$content_id,$content_model,$content_logic,$patah,$flo 'content_id' => $content_id, 'content_model' => $content_model, 'content_logic' => $content_logic, - 'path' => $patah, + 'path' => $path, 'flow_type_id' => $flow_type_id, 'flow_id' => $flow_id, 'create_user' => $create_user_id, @@ -423,6 +423,7 @@ function addApprove($title,$content_id,$content_model,$content_logic,$patah,$flo return true; } catch (\Exception $e) { Db::rollback(); + dump($e->getMessage()); return false; } }