标签:
在刚才增加的关键词回复代码上面添加代码:
$ev = $postObj->Event;
if ($ev = "subscribe")
{
$msgType = "text";
$contentStr = "感谢您的关注!";
$resultStr = sprintf($textTpl, $fromUsername, $toUsername, $time, $msgType, $contentStr);
echo $resultStr;
}
测试效果:
标签:
原文地址:http://www.cnblogs.com/XBlack/p/5296753.html