tp微信scancode_waitmsg事件,大神求拯救

浏览:1220 发布日期:2016/05/20 分类:求助交流
用的官方wechat.class.php的类,想通过微信scancode_waitmsg返回结果获取ScanResult的值,想问怎么获取。用$data['ScanCodeInfo']['ScanResult']没有内容的。
接收到的数据{"ToUserName":"gh_bfc70e7297e5","FromUserName":"onELEwOaugs9pNWHIfxt-eKiO4Yo","CreateTime":"1463638405","MsgType":"event","Event":"scancode_waitmsg","EventKey":"request","ScanCodeInfo":"\n\n"}代码如下:case 'scancode_waitmsg':
    switch($data['EventKey']){
        case 'request':
            $wechat->replyText($data['ScanCodeInfo']['ScanResult']);
             break;
         default:
             $wechat->replyText($data['FromUserName']);
              break;
    }
    break;
最佳答案
评论( 相关
后面还有条评论,点击查看>>