public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO CreateWeChatQRCode(Jinher.AMP.BTP.Deploy.CustomDTO.CateringDTO.WeChatQRCodeDTO dto)
        {
            //定义返回值
            Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO result;

            try
            {
                //调用代理方法
                result = base.Channel.CreateWeChatQRCode(dto);
            }
            catch
            {
                //抛异常
                throw;
            }
            finally
            {
                //关链接
                ChannelClose();
            }            //返回结果
            return(result);
        }
        /// <summary>
        /// 创建公众号带参二维码
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO CreateWeChatQRCodeExt(Jinher.AMP.BTP.Deploy.CustomDTO.CateringDTO.WeChatQRCodeDTO dto)
        {
            BTP.Deploy.CustomDTO.ResultDTO ret = new Deploy.CustomDTO.ResultDTO();
            ContextSession contextSession      = ContextFactory.CurrentThreadContext;

            BE.WeChatQRCode qrCode = new WeChatQRCode();
            qrCode.Id = dto.id == Guid.Empty ? Guid.NewGuid() : dto.id;
            qrCode.WeChatPublicCode = dto.weChatPublicCode;
            qrCode.WeChatAppId      = dto.WeChatAppId;
            qrCode.WeChatSecret     = dto.weChatSecret;
            qrCode.WeChatTicket     = dto.WeChatTicket;
            qrCode.AppId            = dto.appId;
            qrCode.StoreId          = dto.StoreId;
            qrCode.QRNo             = dto.qrNo;
            qrCode.QRType.Value     = (int)dto.QrType;
            qrCode.IsDel            = 0;
            qrCode.IsUse            = false;
            qrCode.SpreadInfoId     = Guid.Empty;
            qrCode.EntityState      = System.Data.EntityState.Added;

            contextSession.SaveObject(qrCode);
            try
            {
                int changes = contextSession.SaveChanges();
                ret.isSuccess = changes > 0;
                ret.Message   = "添加成功";
                JAP.Common.Loging.LogHelper.Info("CreateWeChatQRCode:添加成功");
            }
            catch (Exception ex)
            {
                ret.isSuccess = false;
                ret.Message   = ex.Message;
                JAP.Common.Loging.LogHelper.Error(ex.Message, ex);
            }

            return(ret);
        }
 /// <summary>
 /// 创建公众号带参二维码
 /// </summary>
 /// <param name="dto"></param>
 /// <returns></returns>
 public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO CreateWeChatQRCode(Jinher.AMP.BTP.Deploy.CustomDTO.CateringDTO.WeChatQRCodeDTO dto)
 {
     base.Do();
     return(this.Command.CreateWeChatQRCode(dto));
 }