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