wugg 8 kuukautta sitten
vanhempi
commit
064c1a80f5
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/user/model/Headquarters.php

+ 1 - 1
app/user/model/Headquarters.php

@@ -166,7 +166,7 @@ use think\Exception;use think\Model;class Headquarters extends Base
         return $this->belongsTo(CustomerInfo::class,'code','companyNo');
         return $this->belongsTo(CustomerInfo::class,'code','companyNo');
     }
     }
 
 
-    public static function onAfterUpdate($model) {
+    public static function onAfterWrite($model) {
         event("copyCompany",$model->toArray());
         event("copyCompany",$model->toArray());
      }
      }
 }
 }