/// <summary>
        /// </summary>
        /// <param name="page"></param>
        /// <param name="inputStream"></param>
        /// <returns></returns>
        public NotifyResult Notify(Stream inputStream)
        {
            NotifyResult result = null;
            var          data   = PayUtil.PostInput(inputStream);

            result = XmlHelper.DeserializeObject <NotifyResult>(data);
            return(result);
        }
Exemple #2
0
        /// <summary>
        /// </summary>
        /// <param name="inputStream"></param>
        /// <returns></returns>
        public NotifyResult Notify(Stream inputStream)
        {
            NotifyResult result = null;
            var          data   = PayUtil.PostInput(inputStream);

            try
            {
                result = XmlHelper.DeserializeObject <NotifyResult>(data);
            }
            catch (Exception ex)
            {
                WeChatHelper.LoggerAction?.Invoke(nameof(TenPayV3), ex.ToString());
                throw;
            }
            return(result);
        }
        /// <summary>
        /// </summary>
        /// <param name="page"></param>
        /// <param name="inputStream"></param>
        /// <returns></returns>
        public NotifyResult Notify(Stream inputStream)
        {
            NotifyResult result = null;
            var          data   = PayUtil.PostInput(inputStream);

            try
            {
                result = XmlHelper.DeserializeObject <NotifyResult>(data);
            }
            catch (Exception ex)
            {
                Logger.Log(LoggerLevels.Trace, "Notify反序列化请求出错:" + data);
                Logger.Log(LoggerLevels.Error, ex.ToString());
                Logger.Log(LoggerLevels.Error, "Notify反序列化请求出错:" + data);
                throw ex;
            }
            return(result);
        }