wuggemail@foxmail.com 3 months ago
parent
commit
8f27d96edb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/cxinv/model/FinancialTz.php

+ 1 - 1
app/cxinv/model/FinancialTz.php

@@ -61,7 +61,7 @@ class FinancialTz extends Base
 
     public static function onAfterUpdate(Model $model): void
     {
-        $change = $model->getChanges();
+        $change = $model->getChangedData();
         $origin = $model->getOrigin();
         if (isset($change['status']) && $change['status'] == 2 && $origin['status'] == 1) {
             $product = TzProduct::with(['Product'])->where(['ktCode' => $model['ktCode'], 'type' => 1])->select();