wugg 5 månader sedan
förälder
incheckning
2a3eb51e1d
1 ändrade filer med 2 tillägg och 2 borttagningar
  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();