Browse Source

拆单+打印

gorden 5 months ago
parent
commit
e2569c309b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/admin/controller/order/WholeController.php

+ 2 - 2
app/admin/controller/order/WholeController.php

@@ -3995,8 +3995,6 @@ class WholeController extends Curd
             Db::commit();
 
 
-            _syslog("订单", "核销成功");
-            return json_success('核销成功');
         } catch (\Exception $e) {
             dump($e->getMessage() . $e->getLine());
             Db::rollBack();
@@ -4008,6 +4006,8 @@ class WholeController extends Curd
                 $this->doPrinterWriterOff($id);
             }
         }
+        _syslog("订单", "核销成功");
+        return json_success('核销成功');
     }
 
     public function myOrder(Request $request)