Beispiel #1
0
        static WX_MsgTemplateLinkData()
        {
            WX_MsgTemplateLinkData.DataList = new List <WX_MsgTemplateLinkData>();
            WX_MsgTemplateLinkData wX_MsgTemplateLinkData = new WX_MsgTemplateLinkData();

            wX_MsgTemplateLinkData.MsgType            = MessageTypeEnum.OrderCreated;
            wX_MsgTemplateLinkData.MsgTemplateShortId = "OPENTM207102467";
            wX_MsgTemplateLinkData.ReturnUrl          = "/m-weixin/Order/Detail/{id}";
            WX_MsgTemplateLinkData.DataList.Add(wX_MsgTemplateLinkData);
            wX_MsgTemplateLinkData                    = new WX_MsgTemplateLinkData();
            wX_MsgTemplateLinkData.MsgType            = MessageTypeEnum.OrderPay;
            wX_MsgTemplateLinkData.MsgTemplateShortId = "OPENTM207185188";
            wX_MsgTemplateLinkData.ReturnUrl          = "/m-weixin/Order/Detail/{id}";
            WX_MsgTemplateLinkData.DataList.Add(wX_MsgTemplateLinkData);
            wX_MsgTemplateLinkData                    = new WX_MsgTemplateLinkData();
            wX_MsgTemplateLinkData.MsgType            = MessageTypeEnum.OrderShipping;
            wX_MsgTemplateLinkData.MsgTemplateShortId = "OPENTM202243318";
            wX_MsgTemplateLinkData.ReturnUrl          = "/m-weixin/Order/Detail/{id}";
            WX_MsgTemplateLinkData.DataList.Add(wX_MsgTemplateLinkData);
            wX_MsgTemplateLinkData                    = new WX_MsgTemplateLinkData();
            wX_MsgTemplateLinkData.MsgType            = MessageTypeEnum.OrderRefund;
            wX_MsgTemplateLinkData.MsgTemplateShortId = "TM00430";
            wX_MsgTemplateLinkData.ReturnUrl          = "/m-weixin/OrderRefund/RefundDetail/{id}";
            WX_MsgTemplateLinkData.DataList.Add(wX_MsgTemplateLinkData);
            wX_MsgTemplateLinkData                    = new WX_MsgTemplateLinkData();
            wX_MsgTemplateLinkData.MsgType            = MessageTypeEnum.ShopHaveNewOrder;
            wX_MsgTemplateLinkData.MsgTemplateShortId = "OPENTM200750297";
            WX_MsgTemplateLinkData.DataList.Add(wX_MsgTemplateLinkData);
            wX_MsgTemplateLinkData                    = new WX_MsgTemplateLinkData();
            wX_MsgTemplateLinkData.MsgType            = MessageTypeEnum.ReceiveBonus;
            wX_MsgTemplateLinkData.MsgTemplateShortId = "OPENTM200681790";
            wX_MsgTemplateLinkData.ReturnUrl          = "/m-weixin/Member/Center";
            WX_MsgTemplateLinkData.DataList.Add(wX_MsgTemplateLinkData);
            wX_MsgTemplateLinkData                    = new WX_MsgTemplateLinkData();
            wX_MsgTemplateLinkData.MsgType            = MessageTypeEnum.LimitTimeBuy;
            wX_MsgTemplateLinkData.MsgTemplateShortId = "OPENTM206903698";
            wX_MsgTemplateLinkData.ReturnUrl          = "/m-wap/limittimebuy/detail/{id}";
            WX_MsgTemplateLinkData.DataList.Add(wX_MsgTemplateLinkData);
            wX_MsgTemplateLinkData                    = new WX_MsgTemplateLinkData();
            wX_MsgTemplateLinkData.MsgType            = MessageTypeEnum.SubscribeLimitTimeBuy;
            wX_MsgTemplateLinkData.MsgTemplateShortId = "OPENTM202118814";
            WX_MsgTemplateLinkData.DataList.Add(wX_MsgTemplateLinkData);
        }
        /// <summary>
        /// 静态构造
        /// </summary>
        static WX_MsgTemplateLinkData()
        {
            DataList = new List <WX_MsgTemplateLinkData>();
            WX_MsgTemplateLinkData _tmp;

            #region 预约单创建时
            _tmp                    = new WX_MsgTemplateLinkData();
            _tmp.MsgType            = MessageTypeEnum.OrderCreated;
            _tmp.MsgTemplateShortId = "OPENTM207102467";
            _tmp.ReturnUrl          = "/m-WeiXin/Order/Detail?id={id}";
            DataList.Add(_tmp);
            #endregion

            #region 预约单付款时
            _tmp                    = new WX_MsgTemplateLinkData();
            _tmp.MsgType            = MessageTypeEnum.OrderPay;
            _tmp.MsgTemplateShortId = "OPENTM207185188";
            _tmp.ReturnUrl          = "/m-WeiXin/Order/Detail/{id}";
            DataList.Add(_tmp);
            #endregion

            #region 预约单发货
            _tmp                    = new WX_MsgTemplateLinkData();
            _tmp.MsgType            = MessageTypeEnum.OrderShipping;
            _tmp.MsgTemplateShortId = "OPENTM202243318";
            _tmp.ReturnUrl          = "/m-WeiXin/Order/Detail/{id}";
            DataList.Add(_tmp);
            #endregion

            #region 预约单退款
            _tmp                    = new WX_MsgTemplateLinkData();
            _tmp.MsgType            = MessageTypeEnum.OrderRefund;
            _tmp.MsgTemplateShortId = "TM00430";
            _tmp.ReturnUrl          = "/m-WeiXin/OrderRefund/RefundDetail/{id}";
            DataList.Add(_tmp);
            #endregion

            #region 售后发货
            _tmp                    = new WX_MsgTemplateLinkData();
            _tmp.MsgType            = MessageTypeEnum.RefundDeliver;
            _tmp.MsgTemplateShortId = "OPENTM203847595";
            DataList.Add(_tmp);
            #endregion

            #region 诊所有新预约单
            _tmp                    = new WX_MsgTemplateLinkData();
            _tmp.MsgType            = MessageTypeEnum.ShopHaveNewOrder;
            _tmp.MsgTemplateShortId = "OPENTM200750297";
            DataList.Add(_tmp);
            #endregion

            #region 领取红包通知
            _tmp                    = new WX_MsgTemplateLinkData();
            _tmp.MsgType            = MessageTypeEnum.ReceiveBonus;
            _tmp.MsgTemplateShortId = "TM00251";
            _tmp.ReturnUrl          = "/m-WeiXin/Member/Center";
            DataList.Add(_tmp);
            #endregion

            #region 限时购通知
            _tmp                    = new WX_MsgTemplateLinkData();
            _tmp.MsgType            = MessageTypeEnum.LimitTimeBuy;
            _tmp.MsgTemplateShortId = "OPENTM206903698";
            _tmp.ReturnUrl          = "/m-wap/limittimebuy/detail/{id}";
            DataList.Add(_tmp);
            #endregion

            #region 订阅限时购
            _tmp                    = new WX_MsgTemplateLinkData();
            _tmp.MsgType            = MessageTypeEnum.SubscribeLimitTimeBuy;
            _tmp.MsgTemplateShortId = "OPENTM201272994";
            DataList.Add(_tmp);
            #endregion

            #region 拼团

            #region 开团成功
            _tmp                    = new WX_MsgTemplateLinkData();
            _tmp.MsgType            = MessageTypeEnum.FightGroupOpenSuccess;
            _tmp.MsgTemplateShortId = "OPENTM400048565";
            _tmp.ReturnUrl          = "/m-WeiXin/MyFightGroup/GroupDetail/{gid}?aid={aid}";
            DataList.Add(_tmp);
            #endregion

            #region 参团成功
            _tmp                    = new WX_MsgTemplateLinkData();
            _tmp.MsgType            = MessageTypeEnum.FightGroupJoinSuccess;
            _tmp.MsgTemplateShortId = "OPENTM400048581";
            _tmp.ReturnUrl          = "/m-WeiXin/MyFightGroup/GroupDetail/{gid}?aid={aid}";
            DataList.Add(_tmp);
            #endregion

            #region  新成员参团
            _tmp                    = new WX_MsgTemplateLinkData();
            _tmp.MsgType            = MessageTypeEnum.FightGroupNewJoin;
            _tmp.MsgTemplateShortId = "TM00712";
            _tmp.ReturnUrl          = "/m-WeiXin/MyFightGroup/GroupDetail/{gid}?aid={aid}";
            DataList.Add(_tmp);
            #endregion

            #region 拼团失败
            _tmp                    = new WX_MsgTemplateLinkData();
            _tmp.MsgType            = MessageTypeEnum.FightGroupFailed;
            _tmp.MsgTemplateShortId = "OPENTM400232755";
            _tmp.ReturnUrl          = "/m-WeiXin/FightGroup/Detail/{aid}";
            DataList.Add(_tmp);
            #endregion

            #region 拼团成功
            _tmp                    = new WX_MsgTemplateLinkData();
            _tmp.MsgType            = MessageTypeEnum.FightGroupSuccess;
            _tmp.MsgTemplateShortId = "OPENTM401153728";
            _tmp.ReturnUrl          = "/m-WeiXin/MyFightGroup/GroupDetail/{gid}?aid={aid}";
            DataList.Add(_tmp);
            #endregion
            #endregion
        }