/// <summary> /// 处理信息 /// </summary> /// <param name="model">Dictionary</param> /// Author : 俞立钢 /// Company : 绍兴标点电子技术有限公司 /// Created : 2014-10-10 09:56:36 private void DoMsg(Dictionary <string, string> model) { //通过MsgType判断是普通消息还是事件推送 string msgType = model.ReadKey(PublicField.MsgType); switch (msgType) { #region 普通消息 case "text": //文本消息 SendMsg.ReplyTexts(model); break; case "image": //图片 break; case "voice": //声音 break; case "video": //视频 break; case "location": //地理位置 break; case "link": //链接 break; #endregion #region 事件推送 case "event": //事件类型 msgType = model.ReadKey(PublicField.Event); switch (msgType) { case "subscribe": //关注 /*if (model.ReadKey(PublicField.EventKey).StartsWith("qrscene_")) * { * //带参数的二维码扫描关注 * } * else * { * //普通关注 * }*/ SendMsg.ReplaySubscribeText(model); break; case "unsubscribe": //取消关注 break; case "SCAN": //已经关注的用户扫描带参数的二维码 break; case "LOCATION": //用户上报地理位置 break; case "CLICK": //自定义菜单点击 break; case "VIEW": //自定义菜单跳转事件 break; case "scancode_push": //扫码推事件的事件推送 break; case "scancode_waitmsg": //扫码推事件且弹出“消息接收中”提示框的事件推送 //SendMsg.ReplyScanCodeWaitmsg(model); SendMsg.ReplayTemplete(model); break; case "pic_sysphoto": //弹出系统拍照发图的事件推送 break; case "pic_photo_or_album": //弹出拍照或者相册发图的事件推送 break; case "pic_weixin": //弹出微信相册发图器的事件推送 break; case "location_select": //弹出地理位置选择器的事件推送 break; } break; #endregion } }