|
@@ -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());
|