//使用的是overtrue/laravel-wechat插件
   
    if($message['Event']=='subscribe'){
            $userInfo = $this->userService->getUserInfo($message['FromUserName']);
            $app = app('wechat.official_account');
            $msg1= $userInfo['nickname'].",欢迎您关注实验谷!".PHP_EOL.PHP_EOL
                 .'点开底部三个按钮可查看更多精彩!'.PHP_EOL
                 .'→<a href="http://m.labgle.com">商城首页</a>:查询化合物百科、搜索产品、下单订购、订单跟踪以及信息维护等,您都可以在这里进行,无比方便快捷!'.PHP_EOL
                 .'→<a href="http://m.labgle.com/#/pages/cate/index/index">资讯活动</a>:新闻资讯、实验谷活动,更多精彩等您来摘!'.PHP_EOL
                 .'→<a href="http://m.labgle.com/#/pages/member/index/index">我的</a>:注册、登录、联系客服,贴心维护,让您毫无后顾之忧!'.PHP_EOL.PHP_EOL
                 .'更多详情请您登陆官网:'.PHP_EOL
                 .'www.labgle.com'
            ;
            $text1=new Text($msg1);
            $msg2=$userInfo['nickname'].'您好,点击领取<a href="http://member.labgle.com/mobile/welfare?openid='.$userInfo['openid'].'">福利券</a>';
            $text2=new Text($msg2);
            $result1 = $app->customer_service->message($text1)->to($userInfo['openid'])->send();
            //sleep(1);
            $result2 = $app->customer_service->message($text2)->to($userInfo['openid'])->send();
            return 'success';
        }elseif($message['Event']=='CLICK'){
            if($message['EventKey']=='CONTACT_KEFU'){
                return '欢迎联系实验谷客服!您可以在文字输入框内直接向客服发起询问,也可任选以下任一联系方式联系客服!祝您在实验谷商城获得满意的体验!'.PHP_EOL
                    .'客服微信号:17321647116'.PHP_EOL
                    .'客服QQ:3004755403';
            }
        }
    }