1、关注事件

$msgType = $postObj->MsgType;
switch ($msgType){
case "event":
$e=$postObj->Event;
switch ($e){
case "subscribe":
$contentStr = "欢迎关注!关注事件";
$msgType = 'text';//接收为event事件;回复给用户要设置文本/图像/图文;
$resultStr3 = sprintf($textTpl, $fromUsername, $toUsername, $time, $msgType, $contentStr);
echo $resultStr3;
exit;
break;
}
break;
case "text":
//
break;
}