wupengfei il y a 2 ans
Parent
commit
4a5fc31ae3
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      application/api/controller/UserLeave.php

+ 2 - 1
application/api/controller/UserLeave.php

@@ -136,7 +136,8 @@ class UserLeave extends Base
                 'approve_user' => $fv['user_id'],
                 'flow'   =>$flow_num,
                 'create_at'=>date('Y-m-d H:i:s'),
-                'start_time'=> $flow_num == 1 ? date('Y-m-d H:i:s'):null
+                'start_time'=> $flow_num == 1 ? date('Y-m-d H:i:s'):null,
+                'status'=> $flow_num == 1 ? 1 : 0,
             ];
         }
         foreach ($copy as $ck=>$cv) {