diff --git a/server/business/component/attr_component.lua b/server/business/component/attr_component.lua index 271d5461..be70ab76 100644 --- a/server/business/component/attr_component.lua +++ b/server/business/component/attr_component.lua @@ -234,7 +234,7 @@ function AttrComponent:notify_attr(attr_id, value, oldval, attr) self.sync_attrs[attr_id] = attr event_mgr:publish_frame(self, "on_attr_update") end - self:notify_event(sformat("on_attr_changed_%s", attr_id), value, oldval, attr_id, self) + self:notify_event(sformat("on_attr_changed_%s", attr_id), attr_id, value, oldval, self) end --获取属性