Example #1
0
        public GYWx.Reply.ReplayMsgBase ProcessLocationSelectEvent(GYWx.Receive.EventMsg.LocationSelectEvent sender)
        {
            ////发送模板
            //string templeId = "mAsbg-aH9UpHgVbFUY9TH3PUBZNRd923fcxQVefWU6k";
            //string json = null;
            //string token = GetWXToken();
            //var input = new SendTempletInput();
            //input.template_id = templeId;
            //input.touser = sender.FromUserName;
            //input.topcolor = "#FF0000";
            //input.url = "http://weixin.qq.com/download";

            //string locationStr = "";
            //if (sender.SendLocationInfo != null)
            //{
            //    locationStr = sender.SendLocationInfo.Label + "|" + sender.SendLocationInfo.Location_X + "|" + sender.SendLocationInfo.Location_Y + "|" + sender.SendLocationInfo.Poiname + "|" + sender.SendLocationInfo.Scale;
            //}

            //input.data = new TempletMsgLoginCls()
            //{
            //    first = new TempletMsgTextCls() { value = "测试弹出地理位置选择器:", color = "#FF0000" },
            //    keyword1 = new TempletMsgTextCls() { value = "Event:" + sender.Event, color = "#FF0000" },
            //    keyword2 = new TempletMsgTextCls() { value = "EventKey:" + sender.EventKey, color = "#FF0000" },
            //    keyword3 = new TempletMsgTextCls() { value = "木有内容", color = "#FF0000" },
            //    remark = new TempletMsgTextCls() { value = "SendLocationInfo:" + locationStr, color = "#FF0000" },
            //};
            //var result = WxGetMethod.SendTempletMsg(input, token, ref json);

            return(null);
        }
Example #2
0
 /// <summary>
 /// 接收用户选择地理位置
 /// </summary>
 /// <param name="sender"></param>
 /// <returns></returns>
 public ReplayMsgBase ProcessLocationSelectEvent(GYWx.Receive.EventMsg.LocationSelectEvent sender)
 {
     return(null);
 }