processor.php中
public function respond() {
$content = $this->message['content'];
//这里定义此模块进行消息处理时的具体过程
/*获取设置的投票规则和触发关键字*/
global $_W,$_GPC;
$uniacid=$_W['uniacid']
$id=$this->rule;
$keyword= pdo_fetch("SELECT * FROM " . tablename('rule_keyword') . " WHERE uniacid = :uniacid and rid=:rid", array(':uniacid' => $uniacid,'rid'=>$id));
if($content==$keyword['content']){
/*响应文本信息
return $this->respText('456');*/
/*响应图文消息 respNews*/
$news = array(
'title' => '测试',
'description' => $id,
'picurl' =>'测试',
'url' => $this->createMobileUrl('index'),
);
return $this->respNews($news);
}
}