memberId = $memberId; $this->points = $points; $this->source = $source; $this->type = $type; $this->oldPoints = $oldPoints; $this->newPoints = $newPoints; $this->remark = $remark; $this->relatedId = $relatedId; $this->extra = $extra; } /** * 触发事件 */ public function dispatch(): void { Event::emit('adminapi.points.changed', $this); } }