|
@@ -464,11 +464,11 @@ class Trade extends Base{
|
|
|
}
|
|
|
}
|
|
|
if(!empty($Assoc)) {
|
|
|
- $AssocIn= Assoc::saveAll($Assoc);
|
|
|
+ $AssocIn= (new Assoc())->saveAll($Assoc);
|
|
|
if($AssocIn->isEmpty()) throw new \Exception('关联信息写入失败');
|
|
|
}
|
|
|
if(!empty($trade_log)){
|
|
|
- $trade_logIn= TradeLog::saveAll($trade_log);
|
|
|
+ $trade_logIn= (new TradePool())->saveAll($trade_log);
|
|
|
if($trade_logIn->isEmpty()) throw new \Exception('资金流水写入失败');
|
|
|
}
|
|
|
$this->model->commit();
|