Exemple #1
0
        /// <summary>
        /// 批量创建公众号二维码
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO CreateWeChatQrCodeBatch(Jinher.AMP.BTP.Deploy.CustomDTO.QrCodeCreateDTO dto)
        {
            base.Do();
            Stopwatch timer = new Stopwatch();

            timer.Start();
            var result = this.CreateWeChatQrCodeBatchExt(dto);

            timer.Stop();
            LogHelper.Debug(string.Format("WeChatQRCodeBP.CreateWeChatQrCodeBatch:耗时:{0}。入参:dto:{1},\r\n出参:{2}", timer.ElapsedMilliseconds, JsonHelper.JsSerializer(dto), JsonHelper.JsonSerializer(result)));
            return(result);
        }
        public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO CreateWeChatQrCodeBatch(Jinher.AMP.BTP.Deploy.CustomDTO.QrCodeCreateDTO dto)
        {
            //定义返回值
            Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO result;

            try
            {
                //调用代理方法
                result = base.Channel.CreateWeChatQrCodeBatch(dto);
            }
            catch
            {
                //抛异常
                throw;
            }
            finally
            {
                //关链接
                ChannelClose();
            }            //返回结果
            return(result);
        }
 /// <summary>
 /// 批量创建公众号二维码
 /// </summary>
 /// <param name="dto"></param>
 /// <returns></returns>
 public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO CreateWeChatQrCodeBatch(Jinher.AMP.BTP.Deploy.CustomDTO.QrCodeCreateDTO dto)
 {
     base.Do();
     return(this.Command.CreateWeChatQrCodeBatch(dto));
 }