/** * 微信接入 */ public function indexAction() { $view = new ViewModel(); $this->wechat->valid(); //明文或兼容模式可以在接口验证通过后注释此句,但加密模式一定不能注释,否则会验证失败 //用户关注回复 $type = $this->wechat->getRevType(); if ($type == Wechat::MSGTYPE_EVENT) { // $this->doEvent(); } // $openId = $this->wechat->getOpenId(); // if($type == Wechat::MSGTYPE_TEXT ||$type == Wechat::MSGTYPE_IMAGE ||$type == Wechat::MSGTYPE_VOICE){ // $this->checkUserLogin($openId); // } //转发消息给多客服 $this->wechat->transfer_customer_service(); $view->result = ''; return $view; }