$postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);
$RX_TYPE = trim($postObj->MsgType);
switch ($RX_TYPE)
{
case "event":
$result = $this->receiveEvent($postObj);
break;
case "text":
$result = $this->receiveText($postObj);
break;
}
echo $result;
这种是类似机器人,用户发消息,然后回复 如果我想用户订阅以后,每天主动push给用户,不需要用户操作,应该怎么写?
$RX_TYPE = trim($postObj->MsgType);
switch ($RX_TYPE)
{
case "event":
$result = $this->receiveEvent($postObj);
break;
case "text":
$result = $this->receiveText($postObj);
break;
}
echo $result;
这种是类似机器人,用户发消息,然后回复 如果我想用户订阅以后,每天主动push给用户,不需要用户操作,应该怎么写?