map = [ 'id' => $id, 'next' => $next ]; self::$route_key = MqConstants::CHANNEL_FANS_BACKUPS; return $this; } //粉丝转移 public function setTransfer($id,$next = null){ $this->map = [ 'id' => $id, 'next' => $next ]; self::$route_key = MqConstants::CHANNEL_FANS_TRANSFER; return $this; } /** * 推送MQ消息 */ public function push(){ $mq = MqService::instance()->getDotMqInstance(); $mq->transferExchange($this->map, self::EXCHANGE_NAME, self::$route_key, 'topic'); } }