src/Core/MessageHandler.php
private function handleMessage($selector)
    {
        if ($selector == 0) {
            return;
        }

        $message = $this->vbot->sync->sync();

        $this->log($message);

        $this->storeContactsFromMessage($message);

        if ($message['AddMsgList']) {
            foreach ($message['AddMsgList'] as $msg) {
                $collection = $this->vbot->messageFactory->make($msg);
                if ($collection) {
                    $this->cache($msg, $collection);
                    $this->console($collection);
                    if (!$this->vbot->messageExtension->exec($collection) && $this->handler) {
                        call_user_func_array($this->handler, [$collection]);
                    }
                }
            }
        }
    }
private function handleMessage($selector)
    {
        if ($selector == 0) {
            return;
        }

        $message = $this->vbot->sync->sync();

        $this->log($message);

        $this->storeContactsFromMessage($message);

        if ($message['AddMsgList']) {
            foreach ($message['AddMsgList'] as $msg) {
                $collection = $this->vbot->messageFactory->make($msg);
                if ($collection) {
                    $this->cache($msg, $collection);
                    $this->console($collection);
                    if (!$this->vbot->messageExtension->exec($collection) && $this->handler) {
                        call_user_func_array($this->handler, [$collection]);
                    }
                }
            }
        }
    }
处理消息.

@param $selector