Ejemplo n.º 1
0
        public GYWx.Reply.ReplayMsgBase ProcessPicEvent(GYWx.Receive.EventMsg.PicEvent 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 picListStr = "";
            //if (sender.SendPicsInfo.PickList != null)
            //{
            //    foreach (var pic in sender.SendPicsInfo.PickList)
            //    {
            //        if (pic.item != null)
            //        {
            //            picListStr += pic.item.PicMd5Sum + "|";
            //        }
            //    }
            //}

            //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 = "Count:" + sender.SendPicsInfo.Count, color = "#FF0000" },
            //    remark = new TempletMsgTextCls() { value = "ScanResult:" + picListStr, color = "#FF0000" },
            //};
            //var result = WxGetMethod.SendTempletMsg(input, token, ref json);

            return(null);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 接收用户发送图片
 /// </summary>
 /// <param name="sender"></param>
 /// <returns></returns>
 public ReplayMsgBase ProcessPicEvent(GYWx.Receive.EventMsg.PicEvent sender)
 {
     return(null);
 }