wugg 5 tháng trước cách đây
mục cha
commit
2a3eb51e1d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/cxinv/controller/Trade.php

+ 2 - 2
app/cxinv/controller/Trade.php

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