wugg hai 8 meses
pai
achega
064c1a80f5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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');
     }
 
-    public static function onAfterUpdate($model) {
+    public static function onAfterWrite($model) {
         event("copyCompany",$model->toArray());
      }
 }