/// <summary>
        ///     获取第三方渠道
        /// </summary>
        /// <returns></returns>
        protected async Task <List <string> > _GetThirdPartyOrderChannelAsync()
        {
            try
            {
                using (var orderClient = new OrderQueryClient())
                {
                    var fetchResult = await orderClient.Get3rdOrderChannelAsync();

                    fetchResult.ThrowIfException();
                    return(fetchResult?.Result?.ToList());
                }
            }
            catch (Exception e)
            {
                Logger.Error($" {nameof(DefaultGameManager)} -> {nameof(_GetThirdPartyOrderChannelAsync)} ");
                throw;
            }
        }
Пример #2
0
        /// <summary>
        /// 获取所有第三方订单渠道
        /// </summary>
        /// <returns></returns>
        public static async Task <IEnumerable <string> > Get3rdOrderChannel()
        {
            IEnumerable <string> result = new List <string>();

            try
            {
                using (var client = new OrderQueryClient())
                {
                    var getResult = await client.Get3rdOrderChannelAsync();//获取三方渠道集合

                    getResult.ThrowIfException(true);
                    result = getResult.Result;
                }
            }
            catch (Exception ex)
            {
                Logger.Error("CheckOrderProductTypeByOrderIdAsync 接口异常", ex);
            }
            return(result);
        }