wugg hace 4 meses
padre
commit
aae09d97e1
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/cxinv/controller/Trade.php

+ 1 - 0
app/cxinv/controller/Trade.php

@@ -514,6 +514,7 @@ class Trade extends Base{
             $num=$this->model->saveAll($list);
             if($num->isEmpty())throw new \Exception('资金流水导入失败');
             if(!empty($lib)) (new TradeLib())->saveAll($lib);
+             $this->model->commit();
         }catch (\Exception $e){
             $this->model->rollback();
             return error($e->getMessage());