shish hace 4 años
padre
commit
19d76c1ed2
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app-hd/controllers/WorkController.php

+ 2 - 2
app-hd/controllers/WorkController.php

@@ -65,9 +65,9 @@ class WorkController extends BaseController
                 }
                 }
             }
             }
             $post['num'] = isset($post['num']) && $post['num'] > 0 ? $post['num'] : 1;
             $post['num'] = isset($post['num']) && $post['num'] > 0 ? $post['num'] : 1;
-            WorkService::createFinish($post);
+            $work = WorkService::createFinish($post);
             $transaction->commit();
             $transaction->commit();
-            util::complete();
+            util::success($work);
         } catch (\Exception $e) {
         } catch (\Exception $e) {
             $transaction->rollBack();
             $transaction->rollBack();
             Yii::error("失败原因:" . $e->getMessage());
             Yii::error("失败原因:" . $e->getMessage());