$mysql->runSql($sql); $mysql->closeDb(); // 获得信息的类型 $news = array ( array ( 'Title'=>'欢迎关注WeeGo工作室', 'Description'=>'发送任意内容查看最新开发进展', 'PicUrl'=>'http://233.weego.sinaapp.com/images/weego_400_200.png', ) ); $weObj->news($news)->reply(); } //**********取消关注操作则删除数据库**********/ if($weObj->getRevUnsubscribe()) { // 获取用户OPENID并从数据库删除 $mysql = new SaeMysql(); $sql = "DELETE FROM `users` WHERE `wxid` = '" . $fromUsername . "'"; $mysql->runSql($sql); $mysql->closeDb(); } switch($type) { case Wechat::MSGTYPE_TEXT: /**********文字信息**********/ $news = array ( array ( 'Title'=>"欢迎光临WeeGo工作室",